Forums

WP Easy Post Types
How to configure a Select field (3 posts)

  1. boca jo
    Member
    Posted 2 years ago #

    AWESOME plugin!! It's working great for me except for some trouble with a select field. I created this field:

    Name: Flavor
    System key: flavor
    Field type: Select field
    Label: Show label
    Values: Chocolate
    Vanilla
    PHP Code: (left blank)

    When I bring up the Edit page, I can see that there's a dropdown menu, but there is no text displayed for the options. Here's the HTML for the <select> tag:

    <select name="flavor">
    <option  value="Chocolate"></option>
    <option  value="Vanilla"></option>
    </select>

    Am I doing something wrong?

    http://wordpress.org/extend/plugins/easy-post-types/

  2. urbn
    Member
    Posted 2 years ago #

    I was having the same problem too. I ended up just throwing every character I could think of into a drop down and then viewing the source.

    To use the list box / select field you need to type the following

    1|chocolate
    2|Vanilla
    3|Strawberry

    If you cant tell it is the ( | ) pipe/vertical character.

  3. not3not4
    Member
    Posted 2 years ago #

    Thank you urbn! That worked perfectly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic