Link categories appearing under Post categories

Posted on March 14, 2007 | This post has 2,881 views

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
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

General

Have Your Say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>