In wp_list_pages() and wp_list_categories, does the 'exclude' argument apply to all child pages and cats and the page/category being excluded?
In wp_list_pages() and wp_list_categories, does the 'exclude' argument apply to all child pages and cats and the page/category being excluded?
With the template tag, wp_list_pages(), you need to use the exclude_tree argument.
With the template tag, wp_list_categories(), the exclude= argument with the parent category id excludes the children but that assumes you adhere to to the standard, that ANY category that has been designated a Parent category is not meant to be checked in the category hierarchy when writing posts. Meaning, only the latest generation category should be checked. Think of it like this, only the youngest generation gets the action.
This topic has been closed to new replies.