As of WordPress 3.5 link manager is no longer displayed. If you would like link manager back paste this in your functions.php file <?php add_filter( ‘pre_option_link_manager_enabled’, ‘__return_true’ ); ?> Source: WPRecipes
WordPress wp-config Snippets
Here are a few snippets that can be added to your wp-config to improve your wordpress website: Post Revisions limit number of saved revisions define(‘WP_POST_REVISIONS’, 3); // disable post-revisioning define(‘WP_POST_REVISIONS’, false); // Change Autosave Interval (WordPress is already set to autosave every
WordPress Actions & Filters
WordPress Actions & Filters
Disable Comments on WordPress Media Attachments
Paste this into your functions.php file to disable comments on wordpress media attachments: function filter_media_comment_status( $open, $post_id ) { $post = get_post( $post_id ); if( $post->post_type == ‘attachment’ ) { return false; } return $open; } add_filter( ‘comments_open’, ‘filter_media_comment_status’, 10
Custom Field Loop / Query
This piece of code allows you to create a custom loop based on your custom fields in published posts using a direct database call: <?php $querydetails = ” SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND
Custom Database Error Page
Custom Database Error Page
How to Assign a Default Post Thumbnail
To assign a default thumbnail image in WordPress change the highlighted link below to the location of the image you would like to use for your default image and then paste the code below in your functions.php file: add_action( ‘save_post’,
How to Add Google Fonts to WordPress Theme
Go to Google Fonts and find the font you like. Click: Quick Use – link below and to the right of the font you choose. Choose the style and character sets you want and then copy the link in the
WordPress 3.4 Features
WordPress 3.4 Features
QR Code for Your Posts & Pages
What is QR Code? QR Code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional code) first designed for the automotive industry. More recently, the system has become popular outside the industry due