Viewing 11 replies - 1 through 11 (of 11 total)
  • Cathy Mitchell

    (@multitalentedmommy)

    Are you using this code in the sidebar? Do you have a php-exec plugin installed? Or adding it to the templates?

    Thread Starter Tim Rogers

    (@stealingisbad)

    I have written the named Code in this file:
    /wp-content/themes/hp/sidebar.php

    No, I have no active plugins installed.

    Cathy Mitchell

    (@multitalentedmommy)

    Can you paste the code into a pastebin? What you have should work assuming there is a cat with the ID of 1.

    Thread Starter Tim Rogers

    (@stealingisbad)

    Which code do you mean excactly?

    What you have should work assuming there is a cat with the ID of 1.

    What do you mean with that?
    (I am not an English native speaker)

    Cathy Mitchell

    (@multitalentedmommy)

    THis code should work: <?php wp_list_categories('exclude=1&show_count=1&title_li='); ?>

    Thread Starter Tim Rogers

    (@stealingisbad)

    It should work but it doesn’t work.
    Even if I delete the line completely
    <?php wp_list_categories('exclude=1&show_count=1&title_li='); ?>
    the categories are there still.
    Here my complete sidebar.php from /wp-content/themes/hp/sidebar.php

    [Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]

    Thread Starter Tim Rogers

    (@stealingisbad)

    Here the code in the pastebin

    Thread Starter Tim Rogers

    (@stealingisbad)

    did you use a category widget in ‘dashboard – appearance – widgets’ ?

    if, then this will show the category list, and any edits in the code of ‘wp_list_categories()’ in sidebar.php will have no effect.

    one possibility is to find one of the category widget plugins, which may allow to exclude categories.

    Thread Starter Tim Rogers

    (@stealingisbad)

    Yes I use such a widget.

    I couldn’t find until now any widget, that has this function to exclude categories and is compatible to 3.0.1.

    Is there no possibility to include the wp_list_categories in the theme manually?

    Thread Starter Tim Rogers

    (@stealingisbad)

    It works fine!

    Thanks for the help.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘wp_list_categories exclude doesn't work’ is closed to new replies.