Title: Create a simple Dropdown (specific category)
Last modified: August 20, 2016

---

# Create a simple Dropdown (specific category)

 *  [caroline](https://wordpress.org/support/users/makeupedia/)
 * (@makeupedia)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/create-a-simple-dropdown-specific-category/)
 * I want to create a dropdown menu where my readers can easily choose posts by 
   Brands, reviews etc.
 * I used this one, but i dont’ want all categories to show up. Only the childs 
   of Brands (in this case the category are named “varumarken”).
 * 🙂 I’m glad if someone can help me!
 *     ```
       <li id="categories"><h2><?php _e('Sök via Varumärke'); ?></h2>
       	<?php wp_dropdown_categories('show_option_none=Select category'); ?>
   
       <script type="text/javascript"><!--
           var dropdown = document.getElementById("cat");
           function onCatChange() {
       		if ( dropdown.options[dropdown.selectedIndex].value > 0 ) {
       			location.href = "<?php echo get_option('home');
       ?>/?cat="+dropdown.options[dropdown.selectedIndex].value;
       		}
           }
           dropdown.onchange = onCatChange;
       --></script>
       </li>
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [caroline](https://wordpress.org/support/users/makeupedia/)
 * (@makeupedia)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/create-a-simple-dropdown-specific-category/#post-2327217)
 * I sorted it out myself! But what if i want to create a dropdown menu that shows
   posts from specific tags?

Viewing 1 replies (of 1 total)

The topic ‘Create a simple Dropdown (specific category)’ is closed to new replies.

## Tags

 * [dropdown menu](https://wordpress.org/support/topic-tag/dropdown-menu/)
 * [specific category](https://wordpress.org/support/topic-tag/specific-category/)

 * 1 reply
 * 1 participant
 * Last reply from: [caroline](https://wordpress.org/support/users/makeupedia/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/create-a-simple-dropdown-specific-category/#post-2327217)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
