Excluding or Including specific categories on dropdown list - Vantage
If anyone is interested in how to exclude or include certain items from the category dropdown menu on specific pages please see the below examples;
Exclude Categories: Courtesy of jabberwalk
Originally Posted by
jabberwalk
Include only specific categories (The method that I used because I want users to select their cities)
Use the same method as above but use 'include' instead of exclude. This allows you to protect from your dropdown adding categories when you dont want them to.
Here is how it should look.
Open form-listing.php (or any page that has a dropdown would work I assume)
find: <?php wp_dropdown_categories( array(
add: 'include' => 'replace this text with category ID's that you would like to show up',
Just a hint on this one, make sure it is placed directly under <?php wp_dropdown_categories( array(
Hope this helps as a temporary fix until Vantage can increase the robustness of their categories.