Results 1 to 3 of 3

Thread: Drop-Down Custom Fields

  1. #1
    Thread Starter
    Member
    Not a Verified Customer
    redsoxmaniac's Avatar
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    0
    Thanked 1 Time in 1 Post

    Drop-Down Custom Fields

    The tutorial was really great, but I also wanted to ask if there is a wordpress function for the following:

    drop-down
    check boxes.

    I have custom fields that are limited, and would like people to choose from them. Is this possible? Or would I have to add a script to create one?

  2. #2
    Thread Starter
    Member
    Not a Verified Customer
    redsoxmaniac's Avatar
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Drop-Down Custom Fields

    <label for="location"><?php _e('Location','cp'); ?> <span>*</span></label>
    <input type="checkbox" id="location" name="location" maxlength="100" value="<?php echo array("$location"); ?>" />


    This is what I have for the php, but I am way in over my head. Nothing is there but a singular checkbox. Checkbox or dropdown would be key.

  3. #3
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Drop-Down Custom Fields

    You should take a look at how the category dropdown field is working. That uses a wordpress function but you can essentially just use a standard html dropdown. Just make sure the html field name matches your custom field name so it maps properly.

    This might interest you as well.
    http://wpclassipress.com/version-29-status-update/

Thread Information

Users Browsing this Thread

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