[Plugin: PDO (SQLite) For WordPress] post count of Cat/Tag were not updated under WordPress 3.0.1
-
there is one little problem annoying me:
wp_list_categories() and wp_tag_cloud() always return a empty string, no matter how i classify my posts or tag them.
After a simple testing, I found this bug only affects the count of post in categories/tags, the search or archive functions work ok.
I guess WordPress fail to update the count of categories/tags in SQLite.
I don’t check the source of WordPress (or PDO Plugin), so I wrote some code to workaround.$categories= get_categories(‘hide_empty=0′); foreach ($categories as $category) { $option = ‘ <li><a href="”‘.get_category_link(">term_id ).’”>’; $option .= $category->cat_name; $option .= ‘</a></li> ’; echo $option; }
use code above to replace the wp_list_categories().
https://www.ads-software.com/extend/plugins/pdo-for-wordpress/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: PDO (SQLite) For WordPress] post count of Cat/Tag were not updated under WordPress 3.0.1’ is closed to new replies.