Support » Themes and Templates » Exclude category from the menu!

  • Resolved MrDanielson


    Hey people!

    I downloaded the template ThrillingTheme, and in the menu there is listed the categories.

    I’ve tried to do a “&limit=7” in the menu code, but it didnt change anything – it’s still all categories showing.

    After that I’ve tried exclude&7 (category ID 7), but it just didnt exclude it.

    What did I do wrong?

    Help me please. 🙂

    The code:

    <ul id="nav" class="grid_15">
    			<?php include(TEMPLATEPATH . '/includes/version.php'); ?>
    			<?php wp_list_categories('title_li=&exclude=7&orderby=count&order=DESC&limit=7') ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • there is no parameter ‘limit’ – the parameter to set the number of categories shown is ‘number’

    (integer) Sets the number of Categories to display. This causes the SQL LIMIT value to be defined. Default to no LIMIT.
    there is a possibility that the wrong parameter disturbed the other parameters as well;

    try again with this code:

    <?php wp_list_categories('title_li=&exclude=7&orderby=count&order=DESC&number=7') ?>

    Thanks for the help dude! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude category from the menu!’ is closed to new replies.