Title: Advanced Query nullifies Dropdown menu
Last modified: February 19, 2025

---

# Advanced Query nullifies Dropdown menu

 *  Resolved [bguk50](https://wordpress.org/support/users/bguk50/)
 * (@bguk50)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/advanced-query-nullifies-dropdown-menu/)
 * First of all, thanks for making this plugin. It has amazing functionality and
   looks very professional at the front end. I have made four filters sitting in
   tabs, using four custom layouts generated through functions.php.
 * My problem: all the tabs showed the same content at load up (all published posts,
   sorted by date descending) although the dropdown menu worked as desired.
 * So I want to show only posts of a certain category in each filter. So I added
   this query in the Advanced Query box for each of the filters (left to right in
   front end):
 * posts_per_page=5&post_type=post&post_status=publish&orderby=date&category_name
   =questions
 * posts_per_page=5&post_type=post&post_status=publish&orderby=date&category_name
   =debates
 * posts_per_page=5&post_type=post&post_status=publish&orderby=date&category_name
   =in-committee-2
 * posts_per_page=5&post_type=post&post_status=publish&orderby=date&category_name
   =government-statements-2
 * Result: the four filters only show the latest entries under the desired categories.
 * New problem: now the dropdown menu has become unfunctional. Selecting any of 
   the taxonomy just refreshes the post list as it was so it seems my Advanced query
   turns off the dropdown.
 * I feel like I’m missing a vital step or misunderstanding something fundamental
   about how the plugin works. Would massively appreciate any suggestion. Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadvanced-query-nullifies-dropdown-menu%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [bguk50](https://wordpress.org/support/users/bguk50/)
 * (@bguk50)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/advanced-query-nullifies-dropdown-menu/#post-18317139)
 * Okay so I feel very stupid. I needed to rebuild my category structure first and
   then make sure the posts were in all the right categories. Now it sorts automatically,
   no need for advanced query. Apologies!
 * Right now wondering why the drop down menu is only showing the root category 
   and not the level 2 sub categories when category toggle pressed. Anyway, thanks
   again for a great plugin.
 *  Plugin Author [YMC](https://wordpress.org/support/users/wssoffice21/)
 * (@wssoffice21)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/advanced-query-nullifies-dropdown-menu/#post-18318038)
 * Thanks. Good Luck!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Advanced Query nullifies Dropdown menu’ is closed to new replies.

 * ![](https://ps.w.org/ymc-smart-filter/assets/icon-128x128.png?rev=3354891)
 * [YMC Filter](https://wordpress.org/plugins/ymc-smart-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ymc-smart-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ymc-smart-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/ymc-smart-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ymc-smart-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ymc-smart-filter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [YMC](https://wordpress.org/support/users/wssoffice21/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/advanced-query-nullifies-dropdown-menu/#post-18318038)
 * Status: resolved