Link categories appearing under Post categories

Posted by The Patri0t 14 March, 2007 |

I was facing this problem ever since upgrading to Wordpress 2.1, I did not have time to bother about it but now I had so I looked into it. I searched the Internet but found nothing, posted on Wordpress Help Forums and I was told it’s this way now and that the theme needs update? I don’t know. I checked latest version of the theme I use too but it had same code I think. It would not bother me at all if links would appear after clicking on one of the Links category, what it used to give was 404 Error.

I am no PHP guru, I tried to solve the problem my self. I chose one of the default theme with comes bundled with latest version of Wordpress and replaced the code which calls the Categories from default theme to the theme I am using and guess what, it worked. I don’t see the Link categories under Post categories anymore.

PHP code for calling Categories in WP-Fresh theme which I am using now:

<?php wp_list_cats(’sort_column=id&hide_empty=0&optioncount=0&hierarchical=1′); ?>

According to Wordpress codex, wp_list_cats has been deprecated in 2.1…so I guess that explains why? So after replacing “wp_list_cats” with “wp_list_categories”, its solved. So if you are having the same problem, just look for wp_list_cats and replace it accordingly.

Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter

Related Posts:

Categories : General Tags :

Comments

No comments yet.


Leave a comment

(required)

(required)