Tag Archives: WordPress

How To Increase PHP Memory Limit In WordPress ?

You might have noticed common WordPress error sometimes while activating a new plugin or some other task:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx

This error shows up when you exceed your default Memory Limit. For fixing it up wp-config.php file and add the following line:

define(‘WP_MEMORY_LIMIT’, ’64M’);

How To Modify Post Auto-Save Configuration In WordPress ?

By default WordPress auto saves post on every 60 seconds, but you can easily modify this time according to your like. Open your site’s wp-config.php file and add the following line just above the Happy Blogging line:

define(‘AUTOSAVE_INTERVAL’, 120); // in seconds

In the above line I have given time of 120 seconds, you may change that as per your requirement.

You can also modify post revisions by limiting the number of revisions per post:

define(‘WP_POST_REVISIONS’, 5);

And for disabling post revision, set it to false as shown below:

define(‘WP_POST_REVISIONS’, false);

How To Preserve Editor Scroll Position In WordPress ?

After you save you any draft in WordPress, the page reloads and leaves you at the top of your post and then you scroll down to begin from where you left. This becomes irritating while writing long posts. So if you like you can easily recover old scroll position in your WordPress Editor after saving your draft. Works both in either HTML or visual editor.

Continue reading How To Preserve Editor Scroll Position In WordPress ?

Globally Disable Comments On Any WordPress Post Type Including Posts, Pages & Attachments Etc

Disable Comments, another WordPress plugin allows administrators to globally disable comments on their site. Comments can be disabled according to post type.

Remember:

Use this plugin if you don’t want comments at all on your site or on certain post types. After activating it, plugin settings can be accessed from the ‘Settings’ menu in the administration area.

Related Plugin:

Read this article to Disable Comments By Default On New WordPress Pages And Custom Post Types.

How To Disable Comments By Default On New WordPress Pages And Custom Post Types ?

You can easily disable comments by default on new pages and custom post types, with the ability to individually set them on a page or post basis.

By default, WordPress provides you two options:

  1. You can have them active by default.
  2. You can either disable comments and trackbacks by default for all pages and posts.

WordPress doesn’t provides you any specific setting that allows comments and trackbacks to be active by default for posts, while disabling them on pages or any other post type but using No Page Comment plugin you can have these options also. Simply install, activate it then visit its options from Dashboard->Settings->No Page Comment.

How to Disable WordPress Comments Media Attachments ?

You can very easily disable comments on WordPress media attachments. Open your theme’s function.php file and add the following hack:

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 , 2 );

How To Create A Mobile Friendly WordPress Site In Minutes ?

Convert your WordPress site in to a mobile friendly site in minutes. Make your smartphone visitors automatically get redirected (like Google & Facebook) to your site’s mobile version. DudaMobile WordPress plugin makes it easy, fast and free.

Continue reading How To Create A Mobile Friendly WordPress Site In Minutes ?

Easiest Way To Drag-Drop & Arrange Your WordPress Posts And Custom Post Types

WordPress displays your post in the order you publish them and if you need to rearrange them you have to change their publishing dates. Changing post dates creates dead links and you lost your post’s back links. So rather than changing post dates you can use this new and easy technique for rearranging your WordPress blog posts.

Continue reading Easiest Way To Drag-Drop & Arrange Your WordPress Posts And Custom Post Types

Best Plugin For Auto Tweeting Your WordPress Blog Posts

Tweetily – Tweet Your Posts Automatically! is the best plugin for auto tweeting your WordPress posts. Easy to install, easy to connect with twitter, automatically promotes your posts and pages on Twitter, keep your content alive and drive traffic to your site. Works better than Tweet Old Post Plugin. Set it and forget it!

Continue reading Best Plugin For Auto Tweeting Your WordPress Blog Posts