Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
    
Either or really.. –  Brad Kaufman Apr 7 '13 at 3:27
    
Did you try using WP_Query with category parameters? –  dalbaeb 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. –  Brad Kaufman Apr 8 '13 at 3:23
add comment

1 Answer

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...

share|improve this answer
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
1  
thank you, I missed that. –  WPMU-DEV Ari Apr 7 '13 at 10:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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