Support » Themes and Templates » wp_list_cats odd behaviour in theme

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

    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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_cats odd behaviour in theme’ is closed to new replies.