Results 1 to 5 of 5

Thread: changing dropdown menu on ad posting page to static list?

  1. #1
    Thread Starter
    Newbie
    Not a Verified Customer
    mikemccoy's Avatar
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    changing dropdown menu on ad posting page to static list?

    heh guys,
    just wondering if anyone knows how I could change the default wordpress wp_dropdown_categories function in the "choose a category" area of the post an ad form?

    What i want to do is to replace:
    Code:
    echo "<?php wp_dropdown_categories('show_option_none=Select One&orderby=name&order=ASC&hide_empty=1&hierarchical=1&exclude=15&child_of=1&class=postform'); ?>";
    with something like the following:
    Code:
    echo "<select name="cat" id="my_unique_select" class="my_select_class">
    	<option value="13">Category 1</option>
    	<option value="14">Category 2</option>
    	<option value="15">Category 3</option>
    	<option value="16">Category 4</option>
    </select>";
    I just want to hardcode in a simple dropdown menu like above instead but don't know how to process it on the form!

    Anyone any ideas?

    Thanks,
    Mike

  2. #2
    Thread Starter
    Newbie
    Not a Verified Customer
    mikemccoy's Avatar
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: changing dropdown menu on ad posting page to static list?

    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts

    Re: changing dropdown menu on ad posting page to static list?

    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Junior Member
    Not a Verified Customer
    equinemedia's Avatar
    Join Date
    Jun 2009
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: changing dropdown menu on ad posting page to static list?

    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Junior Member
    Not a Verified Customer
    tbx_3001's Avatar
    Join Date
    Apr 2010
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: changing dropdown menu on ad posting page to static list?

    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)