Optimalizace obrázků

SEO Friendly Images
http://wordpress.org/…s/seo-image/

Adds alt and title attributes to all your images. Improves traffic from search engines and makes the image tags W3C.
Automatically updates all images with proper ALT and TITLE attributes for SEO purposes. If your images do not have ALT and TITLE already set, SEO Friendly Images will add them according the options you set.

Optimalizace pingů

cbnet Ping Optimizer
http://wordpress.org/…g-optimizer/

Save your wordpress blog from getting tagged as ping spammer. WordPress blog pings unnecessarily every time you edit a post. Avoid it with this plugin.
Will automatically be pinged when you publish new posts or drafts. Not when you publish future posts or edit previously published posts, as WordPress does by default.

Alternativy

WordPress Ping Optimizer
http://wordpress.org/…g-optimizer/

When you create a new post, your blog will ping and notify all the ping services that it has been updated. This encourages search engines and different blog directories/ser­vices to index your updated blog properly.
When you edit an existing post, it won't send any unnecessary ping to ping services and saves your blog from getting banned by such services.
When you post a future post by editing the time stamp, it will ping only when your post appears in future.

Konfigurace

Wp-config.php is the single most important file in your entire WordPress installation. This file can be used to configure database functionalities, enhance performance, and improve security on all WordPress powered websites and blogs.

Debugging WordPress

For developers, WordPress has this awesome debugging feature which allows them to find errors, and deprecated functions. By default, this function is set to false, but in the development mode, developers should have it enabled.

define('WP_DEBUG', false); // disable debugging mode by default
define('WP_DEBUG', true); // enable debugging mode

Blog/Site Address

In your WordPress Settings, you specify the WordPress address and the site address. Those are added in your database, and every time the developer calls it in the template, it is running a database query. In WordPress 2.2, these two settings were introduced to override the database values without changing them:

define('WP_HOME', 'http://www.wpbeginner.com');
define('WP_SITEURL', 'http://www.wpbeginner.com');

By adding these in your wp-config.php, you are reducing the number of database queries thus increasing your site’s performance.

Override File Permissions

You can override file permissions, if your host has restrictive permissions for all user files. Most of you do not need this, but it exists for those who need it.

define('FS_CHMOD_FILE', 0755);
define('FS_CHMOD_DIR', 0644);

Post Revisions

In the recent versions of WordPress, there is a super awesome feature called Post Revisions. This function auto-saves posts just incase if your browser crash, or something else happen. It also allows users to restore back to previous versions if they don’t like the changes and so on. While a lot of us love this feature, some of us really hate it with a passion. This function has numerous configuration, so you can make it work just right for you. By default WordPress saves post every 60 seconds, but if you think that is way too much, then you can modify it to your likings with this configuration:

define('AUTOSAVE_INTERVAL', 120); // in seconds

Some posts have 10s, 20s, or even 100 post revisions depending on the blog owner. If you think that feature annoys you, then you can limit the number of revisions per post.

define('WP_POST_REVISIONS', 5);

You can use any integer you like there.

If none of the settings above satisfies you, then you can simply disable the post revisions feature by adding this function:

define('WP_POST_REVISIONS', false);

WordPress Trash Feature

In WordPress 2.9, there was a new “Trash” feature added to the core. This feature works just like the recycling bin, so instead of deleting the post permanently, you would send it to the trash. This helped those users who accidently click on Delete button, and it can be any of us. The bad part about this trash feature is that you have to empty the trash regularly. By default the trash empties itself every 30 days. You can modify that by using the following function:

define('EMPTY_TRASH_DAYS', 7 ); //Integer is the amount of days

FTP/SSH Constants

By default, WordPress allow you to upgrade plugins, and WordPress core versions from within the backend. There are some hosts that requires an FTP or SSH connection everytime you try to upgrade, or install a new plugin. By using the codes below, you can set the FTP or SSH constants and never have to worry about it again.

// forces the filesystem method: "direct", "ssh", "ftpext", or "ftpsockets"
define('FS_METHOD', 'ftpext');
// absolute path to root installation directory
define('FTP_BASE', '/path/to/wordpress/');
// absolute path to "wp-content" directory
define('FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/');
// absolute path to "wp-plugins" directory
define('FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/');
// absolute path to your SSH public key
define('FTP_PUBKEY', '/home/username/.ssh/id_rsa.pub');
// absolute path to your SSH private key
define('FTP_PRIVKEY', '/home/username/.ssh/id_rsa');
// either your FTP or SSH username
define('FTP_USER', 'username');
// password for FTP_USER username
define('FTP_PASS', 'password');
// hostname:port combo for your SSH/FTP server
define('FTP_HOST', 'ftp.example.org:21');

Auto Database Optimization

In WordPress 2.9, there was a feature added called Automatic Database Optimization. To enable this feature, you would need to use the following function:

define('WP_ALLOW_REPAIR', true);

Once activated, you can see the settings on this page: http://www.yoursite.com/…t/repair.php The user does not need to be logged in to access this functionality when this define is set. This is because its main intent is to repair a corrupted database, Users can often not login when the database is corrupt. So once you are done repairing and optimizing your database, make sure to remove this from your wp-config.php.

Increase PHP Memory Limit

There is a common WordPress Memory Exhausted Error that users have seen when activating some plugin. You can increase the PHP Memory Limit through wp-config.php file. Simply paste the code below:

define('WP_MEMORY_LIMIT', '64M');

Note: This feature may not work with some web hosts.

WordPress Error Log

For developers, it is useful to have an error log for a site. You can easily create a simple error log for a WordPress powered website by using wp-config.php file. First create a file called “php_error.log”, make it server-writable, and place it in the directory of your choice. Then edit the path in the third line of the following code:

@ini_set('log_errors','On');
@ini_set('display_errors','Off');
@ini_set('error_log','/home/path/domain/logs/php_error.log');

Also, for an error log, you should instead use these constants:

define( 'WP_DEBUG', true ); // Enables error reporting.
define( 'WP_DEBUG_DISPLAY', false ); // Hides the errors.
define( 'WP_DEBUG_LOG', true ); // Logs errors to wp-content/error.log (or use @ini_set('error_log') )

Automatické vysypání koše

define('EMPTY_TRASH_DAYS', 30 ); // Vysypání koše po 30 dnech

Přesunutí složky WP-Content

define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/newlocation/wp-content' );

nebo

define( 'WP_CONTENT_URL', 'http://www.yourwebsite.com/newlocation/wp-content' );

cesta k adresáři s pluginy

define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/newlocation/wp-content/plugins' );
define( 'WP_PLUGIN_URL', 'http://www.yourwebsite.com/newlocation/wp-content/plugins');

Pokud nefunguje localhost a neznáme jméno DB serveru

define('DB_HOST', $_ENV{DATABASE_SERVER});
define('DB_HOST', $_ENV{DATABASE_SERVER});

Nezapomeňte konfigurační soubor zabezpečit.

Přizpůsobení administračního rozhraní

White Label CMS
http://wordpress.org/…e-label-cms/

The White Label CMS plugin is for developers who want to give their clients a more personalised and less confusing CMS. Allows customization of dashboard and logos, removal of menus, giving editors access to widgets and menus plus lots more.

White Label CMS allows you to remove all the panels from the WordPress dashboard and insert your own panel, which you can use to write a personalised message to your client and link to the important elements in the CMS.

It also allows you to add custom logos to the header and footer as well as the all important login page, giving your client a better branded experience of using their new website.

There is also the option to hide the nag updates as well.

Alternativy:

Web Editors CMS
http://wordpress.org/…editors-cms/

A collection of plugins that optimize WordPress 3 to use (and brand!) as a CMS. Includes our custom plugins and some extra's. It is intended as an all-in-one package. Using this plugin in combination with the recommended plugins will turn WordPress into a perfect dream CMS tool that you can use for your customers. This plugin will let you know what other plugins to install. You will find the configuration settings in the "Settings >> Web Editors CMS" menu.

This plugin is intended to make worpdress a CMS... something to dummy down the admin interface for your customers with you branded name it. We recommend a lot of plugins; setting user roles and knowing how to code PHP is really a must especially when using Pods. If this is not you then this plugin is probably not for you. Features:

  • Brand WordPress
  • Customize Dashboard
  • Add Permalink shortcodes into CMS
  • Multiple content blocks
  • Cleans up Messy Dashboard
  • Easily edit pages from admin menu - Adds all pages in drop down of admin pages menu

WPlite
http://wordpress.org/…gins/wplite/

Lets you hide 'unnecessary' items from the WordPress administration menu---even the Dashboard. On top of that, you can also hide post meta controls on the Write page, so as to simplify the editing interface.

iMasters WP Hacks
http://wordpress.org/…rs-wp-hacks/

A solution to personalize the WordPress admin to final users. Hide some widgets, show anothers, hide menu itens and controll what your client can see.

**

Custom Admin Branding http://wordpress.org/…in-branding/

The Custom Admin Branding Plugin allows you to brand and customize the WordPress administration area for clients or for personal use. You can display custom images and styles for the login screen, admin header and footer.

Úprava administračního rozhraní pomocí actions a filters:
http://sixrevisions.com/…-admin-area/
http://loneplacebo.com/…-admin-area/

Viz též »

10 Techniques for Customizing the WordPress Admin Panel »

Interní prolinkování příspěvků a stránek

RB Internal Links
http://wordpress.org/…ernal-links/

Link to posts and pages within your blog using shortcodes, similar to a wiki or cms. No need to remember full URLs, post ids or slugs with the wysiwyg As well as quickly typing in the link tag there is a tinymce wysiwyg plugin that allows you to search for posts by category.

Alternativy:

Link to post
http://wordpress.org/…ink-to-post/

This plugin permits you to easily create a link to an existing content of your site. It adds a button to the tinymce and quicktags editors, which list the existing articles, pages, category, tags.

Na rozdíl od RB internal Links odkazuje Link to post absolutně (RB používá shortcode s ID stránky či postu) a nenabízí jako RB internal Links volbu odkazování do nového okna, RB internal Links zas neumí odkazovat na rubriky či tagy.

Hikari Internal Links
http://wordpress.org/…ernal-links/

Don't worry anymore of linking a post or a category, to later change its title or slug, or changing your posts permalinks, and creating invalid links to your own site pages.

Hikari Internal Links provides a shortcode that dynamically generates links to most WordPress resources. You can query these resources based on their ID or slug, and these links are generated dynamically. Therefore if you change a resource's title or permalink, its links will be updated automatically.

Automatické prolinkování ze zadaných klíčových slov

Internal Link Building
http://seoroi.com/…nk-building/

Pomocí tohoto pluginu lze jednoduše vkládat jednotlivá klíčová slova, která automaticky následně odkazují na určenou stránku či příspěvek.

Alternativy:

Automatic SEO Links
http://wordpress.org/…c-seo-links/

Forget to put manually your links, just choose a word and a URL and this plugin will replace all matches in the posts of your blog.
For each link, you can set: Title, Target, Rel.

Digg Links
http://wordpress.org/…/digg-links/

With Digg Links you will be able to replace a word or sentence into another custom string. Based on Link a Dink this plugin is ideal for affiliate marketing.

SEO Smart Links
http://www.prelovac.com/…-smart-links
http://wordpress.org/…matic-links/

SEO Smart Links can automatically link keywords and phrases in your posts and comments with corresponding posts, pages, categories and tags on your blog. Further SEO Smart links allows you to set up your own keywords and set of matching URLs. Caching for speed.

Poznámka:

Od verze WP 3.1. je ve vizuálním editoru přepracováno tlačítko pro vkládání odkazů, které nyní umí rychle vyhledávat obsah na webu a přímo automaticky vložit odkaz. Články jsou průběžně vyhledávány už během psaní klíčového slova a nová funkce není omezena jen na příspěvky, takže vidíte i stránky a případné další vlastní typy obsahu. Odkaz je ale bohužel vkládán do textu jako HTML kód, takže tam v této podobě zůstane, i když třeba adresu odkazovaného příspěvku později změníte. V tomto ohledu je praktičtější RB Internal Links, který vkládá odkazy pomocí ID stránek, příspěvků či rubrik.