i want to exclude a category id on menu which is stored in variable
for example i have a variable which is $catID = 12;
how will i do it. this is my menu structure.
<?php wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude='); ?>
i want to exclude a category id on menu which is stored in variable
for example i have a variable which is $catID = 12;
how will i do it. this is my menu structure.
<?php wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude='); ?>
thank you, but its not what i want
Well I might misunderstand what you want to achieve, but that plugin allows you to exclude categories from a number of things, the index, the category menu.
<?php wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude=PUT CATEGORY ID NUMBER HERE'); ?>
for example lets say the category ID is 23:
<?php wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude=23'); ?>
Your post is not very clear. What results do you want, exactly?
<?php
wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude='. $catID);
?>This topic has been closed to new replies.