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.

Is there a way to put a placeholder text in the category form label? Right now the label is empty and has a dropdown menu filled with categories. I want to make a dummy placeholder text which will be something to : CHOOSE THE CATEGORY!

<option value="<option value="<?php wp_dropdown_categories('exclude=34, selected=0'); ?>    
</option>

Thanks in advance!

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You can add it as an argument:

<?php wp_dropdown_categories( 'show_option_none=CHOOSE THE CATEGORY!' ); ?> 

Reference: wp_dropdown_categories

share|improve this answer
add comment

I’m not sure if I understand your question right. Do you need the parameter 'show_option_none' or something else?

share|improve this answer
    
I have a custom form for users to submit articles. They need to choose the category. I need the first option to be sort of dummy text and not blank. –  jimilesku Jul 20 '11 at 18:32
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.