WordPress – Latest/Recent Posts are Not Appearing/Displaying on Home Page
Friends, for the past few days I was pretty annoyed because of a strange problem with my blog. My blog’s home page was not displaying the latest posts. I tried all the methods to correct the problem but all in wain. I activated and deactivated many widgets to see if any of those was the reason. But, nothing worked out. Then I thought to take a look at the source code of the home page and noticed that Cached copy of my home page was generated a month back!
There can be varied reasons for this. One of the solution is mentioned at http://wordpress.org/support/topic/blog-posts-not-showing-up-on-blog-page. This was not the cause in my case.
So, you can go ahead and continue reading if you are also using WP-Super-Cache plugin and facing this problem. This happened not because of any issue in the plugin but because I did not check if the old mod_rewrite rules are still compatible with the latest version of the plugin.
As usual, I kept on updating the plugin to the latest version and overlooked that one of the version set the caching type to ‘Use PHP to serve cache files’ under ‘Advanced’ tab in the plugin’s setting page while my .htaccess file contained the rules which supports mod_rewrite method to serve cache files. I think that the caching type was changed automatically because the rules to support mod_rewrite method were pretty old and was generated by me for an older version of WP Super cache long back.
What can be done? You can either continue using PHP method to serve cache or generate new coding in .htaccess file to support latest version of the plugin.
Method 1: Enable using PHP method to serve cache files.
1) Login to your wordpress blog as admin.
2) Click on ‘WP Super Cache’ under ‘Settings’ on left hand side bar. You will see WP Super Cache Settings page. Check if option ‘Use PHP to serve cache files’ is selected under ‘Advanced’ tab.
3) Click on tab ‘Easy’ –> ‘Update Status’ button. If you see the following message(Notice) then go to step 4.
Below is the message which will be displayed (marked section in above image).
Notice : PHP caching enabled but Supercache mod_rewrite rules detected. Cached files will be served using those rules. If your site is working ok then please ignore this message or you can edit .htacess file in the root of your install and remove SuperCache rules.
4) Go to your .htaccess file and delete the lines starting from # BEGIN WPSuperCache till # END WPSuperCache. You must backup your .htaccess file before making any change.
Method 2 : Enable mod_rewrite method to serve cache files by generating new mod_rewrite rules in .htaccess
1) Go to ‘Advanced’ tab and select ‘use mod_rewrite to serve cache files’.
2) Click on ‘Update Status’ and you will receive a warning message to update mod_rewrite rules in .htaccess file.
3) Go down the page and update the rules by clicking on button ‘Update Mod_Rewrite Rules’.
I opted for mod_rewrite method. This resolved the issue. This is a superb plugin and does the job very well but we need to perform our part as well by checking the latest changes and requirements of the plugin.
Please share your thoughts through comments.
The easiest way to stay informed about everything on Tech2know is to go for any of the below options :
Subscribe to my RSS feed / Subscribe by E Mail / Follow me on twitter /Become a fan on Facebook.
Stay tuned for more.
Related posts:
- Feed Not Displaying/Appearing Properly in Google Chrome, Try RSS Subscription Extension by Google
- [How to] Move from free wordpress blog to self hosted domain
- [How to] Download Free Partition Wizard Home Edition
- [How to] Redirect traffic from your old wordpress blog to your new self hosted domain