• Resolved indiaberry

    (@indiaberry)


    How do I fix that error?

    Fatal error: Call to undefined function: wp_list_categories() in /home/username/public_html/wp-content/themes/spring/sidebar.php on line 56

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter indiaberry

    (@indiaberry)

    I forgot to mention I was using wordpress 2.0.11
    The error have something to do with the below. What should I change to the below?

    • <h2>Categories</h2>
      <?php wp_list_categories(‘orderby=name&show_count=1&hierarchical=0&title_li=’); ?>

    wp_list_categories is for v2.1 and above so that’s why it’s not working.

    Check out wp_list_cats:

    Template_Tags/wp_list_cats

    Thread Starter indiaberry

    (@indiaberry)

    I changed this wp_list_categories to this wp_list_cats
    And it solved my problem!
    theapparatus, thank you for being a big help!

    Glad you got it fixed.

    if you have any more problems, be sure to mention what version you;re running. There were a number of changes with 2.0.x when compared with the newer versions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘categories error in sidebar’ is closed to new replies.