Show Sub-categories from a particular Category in dropdown box
-
Hey
This is my first question here.
Drop-down boxes will show a particular category. The script that I have shows the all the categories and all the sub-categories.
Suppose I have a category named ‘DEMO’ and that category got 3 sub-categories named ‘DEMO SC1’ , ‘DEMO SC2′ ,’DEMO SC3’So I want the dropdown so show DEMO (catagory) and under it
‘DEMO SC1’ , ‘DEMO SC2′ ,’DEMO SC3’.
I have this but it shows all catagories and its sub catagories.` <form action=”<?php bloginfo(‘url’); ?>” method=”get”>
<div>
<?php wp_dropdown_categories(‘show_count=1&hierarchical=1’); ?>
</div>
</form>`Thanks for helping me 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show Sub-categories from a particular Category in dropdown box’ is closed to new replies.