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.

I need to replace the show_option_all (which show all my taxonomies),

with:

a command to show three taxonomies (ID 14, 15, 16) and label this 'all'

Basically, when someone selects 'all' i only want to show the results of the three taxonomies above.

Note: i cant exclude the taxonomy from the search results as it will effect another search form.

Please help!

My current code is: http://pastebin.com/NJi2LQhY

Thanks

Paul

share|improve this question
    
It would be nice if you can provide an example of how you're using this. The code snippet you provided doesn't really provide context. –  WhIteSidE Apr 30 '11 at 10:06
add comment

2 Answers

when using show_option_all with wp_dropdown_categories it gets the value of '0' so you can just check using your $_GET['property_types'] if it is '0' you know i'll need to show results of "all ID 14, 15, 16"

share|improve this answer
    
Hi there, Thanks for responding. Would i be able to use this code: pastebin.com/iXjGcrc3 ? to filter the show option all? Thanks : ) –  Paul B May 2 '11 at 8:36
add comment

have you read this page from the codex Filter Hierarchy

share|improve this answer
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.