Pohodlnější přístup k položkám v administračním rozhraní

**Ozh‘ Admin Drop Down Menu**
„http://wordpress.org/extend/plugins/ozh-admin-drop-down-menu/“:http://wordpress.org/extend/plugins/ozh-admin-drop-down-menu/
„http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/“:http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/

Přesune administrační menu nahoru jako horizontální, z menu lze pak pohodlně vybírat i položky druhé úrovně.

*Alternativa*

**Fluency Admin**
„http://wordpress.org/extend/plugins/fluency-admin/“:http://wordpress.org/extend/plugins/fluency-admin/
„http://deanjrobinson.com/projects/fluency-admin/“:http://deanjrobinson.com/projects/fluency-admin/

Obdobný jako předchozí, menu ale zůstává vlevo jako vertikální. Oproti předchozímu umožňuje customizaci přihlašovací stránky.

Cache pro zrychlení WP a menší zátěž serveru

**Simple Cache**
„https://wordpress.org/plugins/simple-cache/“:https://wordpress.org/plugins/simple-cache/

Simple Cache was constructed after getting frustrated with the major caching plugins available and building sites with developer-only complex caching solutions that get millions of page views per day. Simple Cache promises the following:

– Extremely simple one-click install. There is an on-off switch. That’s it. No need to wade through 50 complicated settings.
– Simple Cache makes your site run very fast so you can handle lots of traffic.
– Extremely easy to delete. Don’t like the plugin? You can remove it, and your website won’t break.
– Easily clear the cache if you need to.
– Enable gzip compression

**DB Cache Reloaded Fix**
„http://wordpress.org/extend/plugins/db-cache-reloaded-fix/“:http://wordpress.org/extend/plugins/db-cache-reloaded-fix/

The fastest cache engine for WordPress, that produces cache of database queries with easy configuration. Compatible with WordPress 3.1
This plugin caches every database query with given lifetime. It is much faster than other html caching plugins and uses less disk space for caching. Now compatible with WordPress 3.1. This plugin is **based on DB Cache Reloaded** by sirzooro and patched so it have WordPress 3.1 compatibility.

I think you’ve heard of WP-Cache or WP Super Cache, they are both top plugins for WordPress, which make your site faster and responsive. Forget about them – with DB Cache Reloaded your site will work much faster and will use less disk space for cached files.

**W3 Total Cache**
„http://wordpress.org/extend/plugins/w3-total-cache/“:http://wordpress.org/extend/plugins/w3-total-cache/
„http://www.w3-edge.com/wordpress-plugins/w3-total-cache/“:http://www.w3-edge.com/wordpress-plugins/w3-total-cache/

The fastest and most complete WordPress performance optimization plugin. Trusted by many popular sites like: mashable.com, smashingmagazine.com, makeuseof.com, kiss925.com, lockergnome.com, tutsplus.com, johnchow.com, ilovetypography.com, webdesignerdepot.com, pearsonified.com, css-tricks.com, yoast.com and others — W3 Total Cache improves the user experience of your blog by improving your server performance, caching every aspect of your site, reducing the download time of your theme and providing transparent content delivery network (CDN) integration.

*Alternativy:*

**Porovnání výkonnosti jednotlivých řešení:**
„http://www.tutorial9.net/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/“:http://www.tutorial9.net/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/

„Benchmark – vítězí W3 Total cache »“:http://cd34.com/blog/scalability/wordpress-cache-plugin-benchmarks/

Combining some of the plugins can lead to an increase in performance such as **Hyper Cache + DB Cache Reloaded**, which is **the best out of the box cache plugin configuration**. Despite the allure of W3 Total Cache’s professionalism and only slightly less admired performance, I prefer to retain some manual control over my blog. For those on a medium priced shared server or if you like the idea of installing and forgetting, the W3 Total Cache plugin will be your ideal choice.

A lot of people still use WP-Cache and WP Super Cache. They are still respectable WordPress caching plugins but consider trading up for Hyper Cache or W3 Total Cache. These newer caching plugins prove better performance and install/config much easier and cleaner. Also the development communities around these newer plugins are much more active and attentive to their users.

**Quick Cache**
„http://www.primothemes.com/post/quick-cache-plugin-for-wordpress/“:http://www.primothemes.com/post/quick-cache-plugin-for-wordpress/
„http://wordpress.org/extend/plugins/quick-cache/“:http://wordpress.org/extend/plugins/quick-cache/

Quick Cache takes a real-time snapshot ( building a cache ) of every Page, Post, Category, Link, etc. These snapshots are then stored ( cached ) intuitively, so they can be referenced later, in order to save all of that processing time that has been dragging your site down and costing you money.

The Quick Cache plugin uses configuration options, that you select from the options panel. See: Config Options under Quick Cache. Once a file has been cached, Quick Cache uses advanced techniques that allow it to recognize when it should and should not serve a cached version of the file. The decision engine that drives these techniques is under your complete control through options on the back-end. By default, Quick Cache does not serve cached pages to users who are logged in, or to users who have left comments recently. Quick Cache also excludes administrational pages, login pages, POST/PUT/GET requests, CLI processes, and any additional User-Agents or special pattern matches that you want to add.

**Super Cache**
„http://wordpress.org/extend/plugins/wp-super-cache/“:http://wordpress.org/extend/plugins/wp-super-cache/
„http://ocaoimh.ie/wp-super-cache/“:http://ocaoimh.ie/wp-super-cache/

WP Super Cache is a static caching plugin for WordPress. It generates html files that are served directly by Apache without processing comparatively heavy PHP scripts. By using this plugin you will speed up your WordPress blog significantly.

Viz též http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html

**Hyper Cache**
„http://wordpress.org/extend/plugins/hyper-cache/“:http://wordpress.org/extend/plugins/hyper-cache/
„http://www.satollo.com/english/wordpress/hyper-cache“:http://www.satollo.com/english/wordpress/hyper-cache

Hyper Cache is an experimental really aggressive cache for WordPress.

**AskApache Crazy Cache**
„http://wordpress.org/extend/plugins/askapache-crazy-cache/“:http://wordpress.org/extend/plugins/askapache-crazy-cache/
„http://www.askapache.com/wordpress/crazy-cache-wordpress-plugin.html“:http://www.askapache.com/wordpress/crazy-cache-wordpress-plugin.html

This sweet little plugin does one thing very well. It caches all the posts on your entire blog at the same time, if you are using WP-Cache, WP-Super-Cache, or Hyper-Cache.

Přesměrování stránek nebo příspěvků na jinou adresu

**Quick Page/Post Redirect Plugin**
„http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/“:http://wordpress.org/extend/plugins/quick-pagepost-redirect-plugin/
„http://www.fischercreativemedia.com/wordpress-plugins/quick-pagepost-redirect-plugin/“:http://www.fischercreativemedia.com/wordpress-plugins/quick-pagepost-redirect-plugin/

Redirect Pages or Posts to another location quickly.

It adds an option box to the page or post edit section where you can specify the redirect location and type of redirect that you want, temporary, permanent, or meta. The redirect Location can be to another WordPress page/post or any other website or external URL. It allows the use of a full URL path, post or page ID, permalink or page-name. Additional 301 Redirects can also be added for non-existent posts or pages – helpful for sites converted to WordPress where you don’t have the ability to edit the .htaccess file.

S výhodou lze využít když potřebujeme do navigace mezi ostatní stránky dostat obsah nějaké rubriky. Zřídíme stránku a přesměrujeme ji na obsah rubriky.

*Alternativy:*

**Simple Redirect**
„https://wordpress.org/plugins/simple-redirect/“:https://wordpress.org/plugins/simple-redirect/

Easily redirect any post or page to another page with a dropdown menu or by manually typing in a URL.

**Page Links To**
„http://wordpress.org/extend/plugins/page-links-to/“:http://wordpress.org/extend/plugins/page-links-to/
„http://txfx.net/wordpress-plugins/page-links-to/“:http://txfx.net/wordpress-plugins/page-links-to/

This plugin allows you to make a WordPress page or post link to a URL of your choosing, instead of its WordPress page or post URL. It also will redirect people who go to the old (or “normal”) URL to the new one you’ve chosen (301 Moved Permanently redirects are standard, but you can choose a 302 Moved Temporarily redirect if you wish).

This functionality is useful for setting up navigational links to non-WordPress sections of your site or to off-site resources.

You can also use it to create a hand-crafted menu that links to pages, posts, categories, or anything within your site.

**Redirect by Custom Field**
„http://wordpress.org/plugins/redirect-by-custom-field/“:http://wordpress.org/plugins/redirect-by-custom-field/

This plugin lets you easily create such „redirecting“ posts or pages by simply setting a custom field.

Usage: Add the custom field with label „redirect“ to any post or page. Enter the redirect target URL as the value of that custom field. Now all links on your site to that post or page will be replaced with that redirect URL! If you try to visit the permalink URL for that page, it will redirect the user to that redirect URL too.

The strings %home% and %site% in URLs are replaced by the WordPress home URL and site URLs.

Kontrola nefunkčních odkazů v příspěvcích a stránkách

**Broken Link Checker**
„http://wordpress.org/extend/plugins/broken-link-checker/“:http://wordpress.org/extend/plugins/broken-link-checker/
„http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/“:http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/

Will check your posts (and pages), looking for broken links, and let you know if any are found.

Zobrazení obsahu pouze přihlášeným uživatelům

Do souboru **functions.php** (Vzhled > Upravit soubory) stačí přidat následující:

/—code php
add_shortcode( ‚member‘, ‚member_check_shortcode‘ );

function member_check_shortcode( $atts, $content = null ) {
if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
return $content;
return “;
}
\—

Pak už stačí kdekoli v příspěvku „obalit“ text určený pouze registrovaným uživatelům tagem [member]:

/—code php
[member]
Toto se zobrazí pouze přihlášeným uživatelům
[/member]
\—

Je-li potřeba to nastavit už v šabloně vzhledu, je třeba použít

/—code php

\—

„Více příkladů »“:http://justintadlock.com/archives/2009/05/09/using-shortcodes-to-show-members-only-content

SQL dotazy k nezaplacení

**Náhrada jednoho řetězce za druhý v libovolné tabulce a poli**

/—code php
UPDATE table_name
SET field_name = replace( field_name, ‚tohle_najdi‘, ‚timhle_nahrad‘ );
\—

k nezaplacení např. při přesunu webu na jinou adresu, lze tak nahradit absolutní URL obrázků, siteurl-homeurl nebo guide

/—code php

UPDATE wp_posts SET post_content = REPLACE(post_content, ‚http://stara.cz‘, ‚http://nova.cz‘);
UPDATE wp_posts SET guid = REPLACE(guid, ‚http://stara.cz‘, ‚http://nova.cz‘);
UPDATE wp_options SET option_value = REPLACE(option_value, ‚http://stara.cz‘, ‚http://nova.cz‘);
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, ‚http://stara.cz‘, ‚http://nova.cz‘);
\—

Tento způsob ale bohužel neřeší případ tzv. „serializovaných dat“:http://stackoverflow.com/questions/11817950/what-is-data-serialization. Při migraci WP na jiné url je proto jistější použít nějaký specializovaný nástroj pro náhradu v serializovaných datech, např.:

„http://pixelentity.com/wordpress-search-replace-domain/“:http://pixelentity.com/wordpress-search-replace-domain/,

„https://interconnectit.com/products/search-and-replace-for-wordpress-databases/“:https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

nebo pluginy „WP Migrate DB“:https://wordpress.org/plugins/wp-migrate-db/ či „Better Search Replace“:https://wordpress.org/plugins/better-search-replace/.

WP Migrate DB migrates your database by running find & replace on URLs and file paths, handling serialized data, and saving an SQL file.

Někdy je potřeba jen přidat text na konec obsahového pole

/—code php
UPDATE wp_posts SET post_content =
concat(post_content, ‚ …‘) WHERE post_type = ‚post‘;
\—

nebo hromadně nahradit url uvedené komentátorem

/—code php
UPDATE wp_comments
SET comment_author_url =
REPLACE( comment_author_url, ‚http://www.stara.cz‘, ‚http://www.nova.cz‘);
\—

**Změna hesla**

/—code php
UPDATE ‚wp_users‘
SET ‚user_pass‘ = MD5(‚PASSWORD‘) WHERE ‚user_login‘ =’admin‘ LIMIT 1;
\—

**Přesun příspěvků z jednoho autora na jiného**

/—code php
UPDATE wp_posts
SET post_author=NEW_AUTHOR_ID
WHERE post_author=OLD_AUTHOR_ID;
\—

**Vymazání revizí a souvisejících metainformací**

/—code php
DELETE a,b,c FROM wp_posts a
WHERE a.post_type = ‚revision‘
LEFT JOIN wp_term_relationships b
ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id);
\—

**Dávkové vymazání komentářů označených jako spam**

/—code php
DELETE from wp_comments WHERE comment_approved = ‚0‘;
\—

**Nalezení nevyužitých tagů**

/—code php
SELECT * From wp_terms wt
INNER JOIN wp_term_taxonomy wtt ON wt.term_id=wtt.term_id
WHERE wtt.taxonomy=’post_tag‘ AND wtt.count=0;
\—

Výpis e-mailů vašich komentátorů
/—code php
SELECT DISTINCT comment_author_email
FROM wp_comments;
\—

**Vymazání všech tagů u příspěvků najednou**
/—code php
DELETE a,b,c
FROM
database.prefix_terms AS a
LEFT JOIN database.prefix_term_taxonomy AS c ON a.term_id = c.term_id
LEFT JOIN database.prefix_term_relationships AS b
ON b.term_taxonomy_id = c.term_taxonomy_id
WHERE (c.taxonomy = ‚post_tag‘ AND c.count = 0);
\—

**Výpis všech nepotřebných *post meta* záznamů**

/—code php
SELECT * FROM wp_postmeta pm
LEFT JOIN wp_posts wp ON wp.ID = pm.post_id
WHERE wp.ID IS NULL;
\—

**Hromadné vypnutí komentářů u starších příspěvků**

/—code php
UPDATE wp_posts SET comment_status = ‚closed‘
WHERE post_date < ‚2009-01-01‘ AND post_status = ‚publish‘;
\—

**Deaktivace všech pluginů**

/—code php
UPDATE wp_options SET option_value = “ WHERE option_name = ‚active_plugins‘;
\—

**Zdroj:**

„http://www.catswhocode.com/blog/wordpress-10-life-saving-sql-queries“:http://www.catswhocode.com/blog/wordpress-10-life-saving-sql-queries

„http://www.onextrapixel.com/2010/01/30/13-useful-wordpress-sql-queries-you-wish-you-knew-earlier/“:http://www.onextrapixel.com/2010/01/30/13-useful-wordpress-sql-queries-you-wish-you-knew-earlier/

Automatické publikování na / z Twitteru

**Twitter Tools**
„http://wordpress.org/extend/plugins/twitter-tools/“:http://wordpress.org/extend/plugins/twitter-tools/
„http://www.sutlej.net/downloads/best-related-posts/“:http://www.sutlej.net/downloads/best-related-posts/

Integrates your blog and your Twitter account so you can post links to your latest posts on Twitter, post your most recent tweets on your blog sidebar, or turn your tweets into blog posts without extra effort.

First thing you need to do is download and activate this plugin. Once you have done that follow the steps below:

1. Create a Category where you would like to post all your automated posts. You can name this category Daily Digest, Twitter, or anything you like.
2. Go to the settings of Twitter Tools Plugin in your WP-Admin.
3. Enter Your Twitter Username and Password.
4. Enable the option to post when you tweet. If you do not want to create an individual post for each tweet, your solution is the next option.
5. Enable the option to create daily digest with all your tweets from that day and modify other settings such as title of that post and title. (You can also set this to weekly digests)
6. Select the category that you made in step 1, to post your tweets.

Once you have done the above steps, you have completed the setup and its ready to go.

**Display Tweets in the Sidebar**

But this plugin has a lot more features then just this. You can also display your recent tweets in the sidebar using this plugin. All you have to do is either use the dynamic widget or paste the following code in your sidebar.php or any other place that you want it displayed:

/—code php

\—

If you just want to show your last tweet then use this code:

/—code php

\—

Zdroj: „How to Auto Publish Your Twitter Tweets as WordPress Posts“:http://www.wpbeginner.com/plugins/how-to-auto-publish-your-twitter-tweets-as-wordpress-posts/

**Jak použít ve WordPressu Twitter API bez pluginu**
„http://www.problogdesign.com/wordpress/how-to-use-the-twitter-api-in-wordpress/“:http://www.problogdesign.com/wordpress/how-to-use-the-twitter-api-in-wordpress/

Zobrazení souvisejících příspěvků

This is a great little feature to have in your theme that saves the theme user using yet another plugin! It displays **related posts based on tags**, simply disappearing if there are no tags.

/—code php
ID);
if ($tags) {
echo ‚

Related Posts

‚;
$first_tag = $tags[0]->term_id;
$args=array(
‚tag__in‘ => array($first_tag),
‚post__not_in‘ => array($post->ID),
‚showposts’=>5,
‚caller_get_posts’=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>

Řazení stránek

**My Page Order**
„http://wordpress.org/extend/plugins/my-page-order/“:http://wordpress.org/extend/plugins/my-page-order/
„http://geekyweekly.com/mypageorder“:http://geekyweekly.com/mypageorder

Allows you to set the order of pages through a drag and drop interface. The default method of setting the order page by page is extremely clumsy, especially with a large number of pages. The plugin also installs a replacement widget that exposes all the options of the wp_list_pages template function.