This may be a little different than most people do. I'm trying to show certain posts that are determined by 4 different "categories." I have a large database table full of "products" (I'm using the WP Products plugin, but I'm willing to change plugins). When a person comes to the site, they'll have 4 drop down menus to chose a specific category in each menu, and then query the results determined by those 4 categories.

I've been looking into query_posts or $wpdb to implement this. What is the best route to take in this situation?

  • Either or really.. Apr 7 '13 at 3:27
  • Did you try using WP_Query with category parameters? Apr 7 '13 at 5:41
  • @BradKaufman - If you are using sub categories, a little more info is needed . for example, what would those 4 menus have ? only 4 categories ? should all 4 have the same categories ? are those 4 menus of 4 different categories that are populated by POSTS ? by Subcategories ? Please elaborate a bit.
    – krembo99
    Apr 7 '13 at 6:40
  • @krembo99 There's 4 categories with 4 subcategories for each one. The main categories are empty but the subcategories are loaded with posts. Ideally be able to select a sub category from a drop down menu. Apr 8 '13 at 3:23

You could simply try using this plugin.

If you want to custom-code it, that plugin would be a good place to start and look at how they're doing it...

  • 1
    Hi WPMU-DEV, Welcome to WPSE. Signatures or tag-lines are not allowed in answers or questions. Please see the FAQ
    – Chris_O
    Apr 7 '13 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.