hi
I have this
<?php wp_dropdown_categories('hide_empty=0&child_of=3&name=Factory');?>
which works great but I need to put in a blank default entry so if a selection is not made it will return nothing.
Any ideas?
Cheers
Mat
hi
I have this
<?php wp_dropdown_categories('hide_empty=0&child_of=3&name=Factory');?>
which works great but I need to put in a blank default entry so if a selection is not made it will return nothing.
Any ideas?
Cheers
Mat
See the "show_option_none" and "show_option_all" parameters.
http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
worked like a charm
<?php wp_dropdown_categories('hide_empty=0&child_of=6&name=Factory&show_option_none=PLEASE SELECT');?>
Nice!
This topic has been closed to new replies.