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'm using wp_dropdown_categories() to output a dropdown.

In default view (without having clicked it) it shows the name of the first category in the list. I'd like it to say "Categories". Is this possible?

Thanks in advance

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can use the show_option_all argument:

<?php $args = array(
'show_option_all'    => 'Categories'
);
wp_dropdown_categories( $args );
?>

Function Reference/wp dropdown categories

share|improve this answer
    
Thanks I got it. –  gowri Jun 24 '11 at 14:12

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.