Multikriteriální filtrování příspěvků

Query Multiple Taxonomies
http://wordpress.org/extend/plugins/query-multiple-taxonomies/

Say you have two custom taxnomies defined: *genre* and *artist*.

Currently, you can do the following types of queries on your site:
?genre=jazz
?genre=jazz&cat=1

But you can’t do this:
?genre=jazz&artist=chet-baker

WordPress will just ignore one of the parameters. This plugin fixes that. It also comes with a drill-down navigation widget.

Umístění uživatelských funkcí do pluginu

Standardní umístění uživatelských funkcí je v souboru *functions.php*.
Nešikovná na tomto postupu je skutečnost, že jsou pak vaše funkce vázány pouze na danou šablonu vzhledu a pro každou jinou šablonu je musíte do *functions.php* zkopírovat. Šikovnější metoda, umožňující jejich snadnou přenositelnost nezávisle na šablonách vzhledu, je proto umístění těchto funkcí do *pluginu*.

Vytvoříme si soubor *s u* s následujícím kódem:


<?php
/**
 * Plugin Name: My Custom Functions
 * Plugin URI: http://yoursite.com
 * Description: Popis funkcionalit
 * Author: Vaše jméno
 * Author URI: http://yoursite.com
 * Version: 0.1.0
 */

// Následuje váš kód s uživatelskými funkcemi

?>

Soubor *my-custom-functions.php* umístíme do adresáře */wp-content/mu-plugins/* (podadresář */mu-plugins* musíme nejprve vytvořit). Veškeré pluginy umístěné v tomto podadresáři se spouští automaticky (mu = must use), není je tedy třeba aktivovat (a nelze je ani deaktivovat či odinstalovat, v seznamu pluginů se zobrazují bez těchto možností).

Chcete-li mít možnost plugin s funkcemi standardně aktivovat, vložíte soubor *my-custom-functions.php* jako každý jiný plugin do adresáře */wp-content/plugins/*.

Zdroj: Creating a custom functions plugin for end users »

How to create your own WordPress functionality plugin »

Shortcode pro přímé zobrazení PDF souboru

Just open *functions.php* file and put following code in that file.


function pdflink($attr, $content) {
 return '<a href="http://docs.google.com/viewer?url=' . $attr['href'] . '">'.$content.'</a>';
}
add_shortcode('pdf', 'pdflink');

Upload the PDF file to your wordpress and then get the path of PDF file and then put above lines in article.
For showing link of PDF file in article or post you need add the following lines in the article.


[pdf href="http://yoursite.com/linktoyour/file.pdf"]View PDF[/pdf]

If you does not want to create PDF link in your site and you want to show the pdf doc in your site then use following code.


function pdfshow($attr, $content) {
	return '<iframe src="https://docs.google.com/gview?url='.$attr['href'] .'&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>';
}
add_shortcode('pdfshow', 'pdfshow');

For showing the PDF file in article or post you need add the following lines in the article.


[pdfshow href="http://yoursite.com/linktoyour/file.pdf"]View PDF[/pdf]

Zdroj »

Přiřazení stejného obrázku více příspěvkům (opakované použití)

If you use the library and use a lot of pictures in the posts, the following small link in the library will surely help you. Thus, images can be easily reused. A link will be created so you can access the image directly and there is no need to upload the image again to your new post.


function upload_columns($columns) {
	unset($columns['parent']);
	$columns['better_parent'] = __( 'Parent' );
	return $columns;
	}
 
function media_custom_columns($column_name, $id) {
	$post = get_post($id);
	 
	if ( $column_name != 'better_parent' )
	return;
	 
	if ( $post->post_parent > 0 ) {
		if ( get_post($post->post_parent) )
		$title = _draft_or_post_title($post->post_parent);
		?>
		<strong>
		<a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a>
		</strong>, <?php echo get_the_time( get_option('date_format') ); ?>
		<br />
		<a class="hide-if-no-js" onclick="findPosts.open('media[]','<?php echo $post->ID ?>');return false;" href="#the-list"><?php _e( 'Re-', 'textdomain' ); _e('Attach'); ?></a>
		<?php
	} else {
		_e( '(Unattached)' ); ?>
		<br />
		<a class="hide-if-no-js" onclick="findPosts.open('media[]','<?php echo $post->ID ?>');return false;" href="#the-list"><?php _e('Attach'); ?></a>
		<?php
	}
}
add_filter( 'manage_upload_columns', 'upload_columns' );
add_action( 'manage_media_custom_column' , 'media_custom_columns', 0, 2 );

Zdroj »

*Alternativa*

Shuffle
http://wordpress.org/extend/plugins/shuffle/

Shuffle modifies/improves your Media Library in a number of ways. Shuffle lets you:

– Attach an item (Image, Audio, Video) to anything (Post, Page, Custom Post Type, another Attachment)!
– Reorder an item’s attachments using a simple Drag and Drop UI
– Detach an attachment from an item without deleting the attachment
– View all attachments attached to an item

This plugin is especially useful if you are using WordPress as a CMS and/or have a media-heavy site.

Jak přidat Facebook tlačítko „Líbí se mi“

Like
http://wordpress.org/extend/plugins/like/

The Facebook Like Button Widget adds a ‚Like‘ button to your WordPress blog posts. It uses the new Facebook Like button released on Apr. 21st 2010.

*Alternativy*

Facebook Likes You!
http://wordpress.org/extend/plugins/facebook-likes-you/

Facebook Likes You! is simple plugin which makes it easy to add Facebook Like button and widgetable Like box. K dispozici i v české jazykové verzi.

WordPress Facebook Like Plugin
http://wordpress.org/extend/plugins/wordpress-facebook-like-plugin/

Add a Facebook „Like“ Button to your blog posts and increase your visitor engagement instantly! This plugin adds a simple and easy to use Facebook Like functionality with admin options to change the location of Facebook Like button, font, show faces, use the box with count as well as other cool and useful options.

Bez pluginu do šablony
http://duben.org/wordpress/pridavame-facebookove-tlacitko-to-se-mi-libi-do-wordpressu


<iframe src="https://www.facebook.com/plugins/like.php?href=<?php 
echo urlencode(get_permalink()); 
?>&amp;layout=standard&amp;show-faces=true&amp;width=400&amp;action=like&amp;
font=verdana&amp;colorscheme=light" 
scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; 
width:400px; height:25px"></iframe>

Automatically add Twitter and Facebook buttons to your posts
http://www.wprecipes.com/automatically-add-twitter-and-facebook-buttons-to-your-posts

Paste the code below into your *functions.php* file, save it, and you’re done.


function share_this($content){
    if(!is_feed() && !is_home()) {
        $content .= '<div class="share-this">
                    <a href="http://twitter.com/share"
class="twitter-share-button"
data-count="horizontal">Tweet</a>
                    <script type="text/javascript"
src="https://platform.twitter.com/widgets.js"></script>
                    <div class="facebook-share-button">
                        <iframe src="https://www.facebook.com/plugins/like.php?href='.urlencode(get_permalink($post->ID))
.'&amp;layout=button_count&amp;show_faces=false&amp;width=200&amp;action=like&amp;colorscheme=light&amp;height=21"
scrolling="no" frameborder="0" style="border:none;
overflow:hidden; width:200px; height:21px;"
allowTransparency="true"></iframe>
                    </div>
                </div>';
    }
    return $content;
}
add_action('the_content', 'share_this');

Změna trvalých odkazů

Permalinks Migration
http://www.deanlee.cn/wordpress/permalinks-migration-plugin/
http://wordpress.org/extend/plugins/permalinks-migration-plugin-for-wordpress/

With this plugin, you can safely change your permalink structure – for example, from */%year%/%monthnum%/%day%/%postname%/* to */%category%/%postname%/* – without breaking the old links to your website, and even doesn’t affect your search engine rankings.

But doing so will make all pages indexed by search engines become invalid, moreover, losing visitors from other sites or bookmarks that links to you.

Permalinks Migration plugin is a way to tell the search engines (and browsers) that the page has permenantly moved, and that the old address should be replaced by the new one . This plugin will generates a “301 Redirect” when user or spider visit your site through old permalinks and redirect them to the new permalinks of the same post.

SEO pluginy

SEO Friendly WordPress in 12 Steps »

Pozn.: Přidávat k příspěvkům a stránkám vlastní *titles* a *descriptions* lze i bez pluginu, prostřednictvím metaboxů resp. uživatelských polí

Platinum SEO Pack
http://wordpress.org/extend/plugins/platinum-seo-pack/

This plugin is based on All-In-One SEO Pack, but added some extra functionality for those who really want to get their hands dirty in the SEO machine. This plugin allows you to define not just noindex/index for each page, but also follow or nofollow, noarchive, nosnippet, noodp, noydir… Quite the array of options. My favorite part? They tell you, “don’t be afraid to change your permalinks” – they’ve added a 301 redirect capability so you won’t lose page rank.

WordPress SEO by Yoast
http://wordpress.org/extend/plugins/wordpress-seo/

Nice detached admin page, explanations with loads of options, quite a few added features (like authentication for google webmasters or breadcrumbs). Forces you to choose a focus keyword when you’re writing your articles, and then makes sure you use that focus keyword everywhere. WordPress SEO has the most advanced XML Sitemaps functionality in any WordPress plugin. Once you check the box, it automatically creates XML sitemaps and notifies Google & Bing of the sitemaps existence.

The clear winners and real all in one seo alternatives are WordPress SEO by Yoast and „Platinum SEO Pack“::http://wordpress.org/extend/plugins/platinum-seo-pack/, but for diferent reasons, if you want a clean, simple SEO option for WordPress i would go with Platinum SEO Pack, it has everything you need, but if you want a bit of an edge and more options and better understanding of the features, then i would go with WordPress SEO by Yoast.

All-In-One SEO Pack
http://wordpress.org/extend/plugins/all-in-one-seo-pack/

This tool only requires you to define your desired meta information, keywords, and some select niceties (defining noindex for category pages, tag pages and archives), and you’re done. Literally one of the most simply effective tools for SEO.

SEO Ultimate
http://wordpress.org/extend/plugins/seo-ultimate/
http://www.seodesignsolutions.com/wordpress-seo/

SEO Ultimate is a powerful all-in-one SEO plugin, available free for WordPress bloggers. Take control of your on-page SEO with user-friendly settings and tools for optimizing your titles, meta data, robots tags, canonicalization, autolinks, post slugs, and much more.

HeadSpace 2
http://wordpress.org/extend/plugins/headspace2/
http://urbangiraffe.com/plugins/headspace2/

Controls almost every aspect of your site’s meta-data, including advanced tagging, Analytics, and dozens of plugins.

You can configure meta-data for:

– Posts
– Pages
– Categories
– Home page
– Author pages
– Search pages
– 404 page

You can define:

– Tags/keywords, with suggested keywords
– Descriptions
– Page titles
– Custom ‚more text‘
– Site name and site description
– Custom themes – change your theme on each page!
– Custom plugins – load a plugin only on specific pages
– Additional CSS and JavaScript files
– Noindex and nofollow meta tags
– Follow/follow on archive, category, page, tag, and comment links

Srovnání výše uvedených pluginů »

SEO Nova
http://www.seoinc.com/seo-nova/

SEO Nova can easily be defined as the WordPress SEO solution for bloggers at any level of experience. SEO Nova offers all the amazing features of its top predecessors plus so much more. Deciding to pursue developing a WordPress plug-in was an easy choice. Too many friends, clients and colleagues seem to experience similar annoyances. Using alternative WordPress SEO plug-ins just didn’t provide enough instructional content, understandable feature descriptions, let alone optimization advice.

SEO Friendly Images
http://www.prelovac.com/vladimir/wordpress-plugins/seo-friendly-images

Yet another little plugin with a simple task that provides a wealth of functionality. By adding an “alt” and “title” description to all of your images, SEO Friendly Images is able to describe your photos and images to search engines, allowing them to more easily crawl your content.

Porovnání SEO pluginů by Yoast »

Which Is The Best SEO Plugin by Elegant Themes »

50 nejlepších SEO pluginů pro WordPress »

Změna z příspěvků na stránky nebo naopak

Vice Versa
http://wordpress.org/extend/plugins/vice-versa/

Vice Versa allows you to easily convert WordPress Posts to Pages and Pages to Posts. You can also assign a Page or Post a parent or category(s) as you are converting from one to the other. Vice Versa is easy to install and use. No database tables are affected during installation and there are no additional settings required for the Vice Versa to work.

Automatizace instalace a konfigurace

Core Tweaks WordPress Setup
http://wordpress.org/extend/plugins/seo-automatic-wp-core-tweaks/

This plug-in completely automates the proper setup of your WordPress blog for search engine optimization. Primarily for use in new WP installations.
Almost everything is covered, from changing the permalink structure to deleting the Hello World sample post and comment. All the options are accessible from one single page.

*Související:*
Hromadná instalace pluginů

*Další informace k automatické instalaci a konfiguraci:*

http://wpbits.wordpress.com/2007/08/09/automating-wordpress-customizations-the-plugin-way/
http://wpbits.wordpress.com/2007/08/10/automating-wordpress-customizations-the-installphp-way/