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

  1. miyanialkesh7
    Posted 2 years 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!


  2. Scott Kingsley Clark
    Plugin Author

    Posted 2 years 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


    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'.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic