WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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'); ?>    

Thanks in advance!

share|improve this question
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

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

Your Answer


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.