SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member chirschfeld's Avatar
    Join Date
    Jul 2007
    Location
    Arizona :(
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    wp_dropdown_categories HELP

    My site is 001world.com.

    I am trying to make the right drop down category menu start at "Choose City" with categories in alphabetical order. Right now I have

    <?php wp_dropdown_categories('show_option_none=Choose City'); ?>

    But how do I make it alphabetical?!? Or is there a way to do <?php wp_dropdown_categories('orderby=name');?> and start this with Choose City?

    thanks

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <?php wp_dropdown_categories('show_option_none=Choose City&orderby=name'); ?>
    WordPress has excellent documentation:
    http://codex.wordpress.org/Template_...own_categories


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •