Comments miscount in WordPress 2.9? Here's the fix

commentcountWordPress 2.9 "Carmen" is live since Saturday, December 19th, 2009. If you upgraded your WordPress Installation to 2.9, you may have noticed an error in the comment counter below the post date on index pages. The Link always showed 2 comments too much, so if you had 3 comments on a post, the link displayed "5".

Here's how to fix that issue:

Open your index.php file and look for

<?php comments_popup_link(__('0'), __('1'), __('%'), '', __('--'));  ?>

Replace that line with this new line:

<?php comments_popup_link( '0', '1', '%', 'comments-link', '-'); ?>

All Themes are updated and ready for WordPress 2.9, the comment miscount bug is fixed, also in the free themes. Premium Theme Upgrades can be found in the support forum. If you download and reinstall your Theme, please don't forget to backup your old theme first as you may have edited it, and by just overwriting the files, your changes would get lost!

9 Comments »

RSS feed for comments on this post. TrackBack URL


Leave a Reply

TheBuckmaker.com is proudly powered by WordPress, the best CMS ever. Support Wikipedia and dmoz.org.
Some of my other projects: conserio.at | Artikles.at | HostingSelector.com | Energetisierung.com | Xoppla.net | Cheers to a good friend: InterTech | Legal Notice