WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_cats odd behaviour in theme (3 posts)

  1. bengo
    Member
    Posted 7 years ago #

    i'm using the darkritual theme, and the wp_list_cats call in the left sidebar is mucking up.

    http://www.badscience.net

    the numbers for how many posts are in each category appear on an extra line below the category name, which mucks up the look massively, and the sub category thing is misbehaving, with my previous simpler theme (dusk by beccary) there was a nice nested menu for the subcategories of "media" and "complementary medicine", now they just mess up a bit.

    this is... i confess.. totally beyond my tinkering skills...

  2. ektz
    Member
    Posted 7 years ago #

    in sidebar.php file, you need to change the code for the categories to show in proper way, with required attributes.
    normally it would be something like..

    <?php wp_list_cats('optioncount=1'); ?>

    Change it to this at below to remove the count beside the category name, sort the categories by name and remove the nested thing.

    <?php wp_list_cats('sort_column=name&hierarchical=0'); ?>

    hope this works.
    Ekta.

  3. bengo
    Member
    Posted 6 years ago #

    brill

Topic Closed

This topic has been closed to new replies.

About this Topic