Title: Using a submenu to filter content
Last modified: August 30, 2016

---

# Using a submenu to filter content

 *  [backpages](https://wordpress.org/support/users/backpages/)
 * (@backpages)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/using-a-submenu-to-filter-content/)
 * I have a page that loads 20 posts. 5 are type “a,” 5 are type “b,” 5 are type“
   c” and 5 are type “d.” I’d like to assign each one of them a second category 
   and the create a sub-menu where users can “filter” by type. By default, the page
   loads all of them, which is what I want. But, I’d like them to then be able to
   narrow them down by type if they want. So the submenu would be “All | Type A 
   | Type B | Type C | Type D.”
 * I can create a link on each of these submenu items that reloads the page and 
   runs the proper loop for just that type. But, since all the posts are already
   loaded to start with this seems like a waste to reload the page and run another
   loop. Is there a way to simply click on a submenu link and have certain items
   on the page remain and others disappear? Without reloading the page? Thanks for
   any help or guidance.

The topic ‘Using a submenu to filter content’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [submenu](https://wordpress.org/support/topic-tag/submenu/)

 * 0 replies
 * 1 participant
 * Last reply from: [backpages](https://wordpress.org/support/users/backpages/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/using-a-submenu-to-filter-content/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
