WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Check box and Radio Fields with custom titles on Manage Fields section (2 posts)

  1. Alkesh
    Member
    Posted 3 months ago #

    I want to add check box and Radio Fields/Buttons with custom titles on Manage Fields section for my custom post types.

    How can I do it??

    Thanks in advance!

    https://wordpress.org/plugins/pods/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 3 months ago #

    For your Custom Post Type that you've registered or extended with Pods, go to the Edit Pod screen, then add a field, select Relationship as the field type, and then you can type in as many options as you'd like in this format:

    option1|Option 1
    option2|Option 2
    option3|Option 3

    or:

    Option 1
    Option 2
    Option 3

    Depends on how you want to work with the data. The best option will always be giving it a 'key' like option1, option2, etc.. because you can always change the label and the data will remain the same as selected in the database. If you go with the second example, if you change Option 1 to 'My Option' or anything else, Pods doesn't know that the option has changed and you'll have to manually run a query in your database to change the values stored as 'Option 1' to 'My Option'.

Reply

You must log in to post.

About this Plugin

About this Topic