WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Custom Fields Value Option Dependen (8 posts)

  1. TC.K
    Member
    Posted 2 years ago #

    First of all i have to say this plugin is awesome!

    However, I still hope for more features included in this plugin.

    I wonder if there any way to do the requirement like below:

    For the custom fields, can we defined Parent and Child value option? The child value options are depend on the Parent input.

    For example when we adding an address:

    Country : [US, CN]

    If the user choose US then the next custom field is State and the value options would be The states in US .
    Country -> [us]
    State : [Alabama,Alaska,American Samoa,Arizona,Arkansas...etc]

    However if user choose CN, then the next custom field would be Province and the value options would be the provinces in China

    Country -> [CN]
    Province : [Anhui,Beijing,Chongqing,Guangdong,Shang Hai...etc]

    Hope you guys know what I tried to express..

    http://wordpress.org/extend/plugins/types/

  2. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    Types 0.9.5, due to release next week, will have a complete framework for parent / child relationship between different post types.

    I'm going to cover it in our blog:
    http://wp-types.com/blog/

  3. TC.K
    Member
    Posted 2 years ago #

    Really??..I can't wait for this...

    Thanks

  4. TC.K
    Member
    Posted 2 years ago #

    Hi AmirHelzer,

    I already installed the latest Types 0.9.5, I found one new feature at the Custom Fields Group - the Conditional Display .

    I am not quite understand how it works, seem there are no documentation about it too. Any details about this feature?

  5. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    You're right. It's not yet documented. Choose the fields to filter by, then choose the condition and enter a value.

    For example, if you want the group to appear only when the 'height' custom field is larger than 300, choose 'height' as the field, then '>=' as the operation and 300 in the value.

  6. TC.K
    Member
    Posted 2 years ago #

    Is it only work in numbers? How about if I want the 'book' custom field equal to 'fiction'?

    Can it do the thing that I requested on above (1st post in this thread)?

  7. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    You can also enter texts. The number was an example for numeric fields.

  8. TC.K
    Member
    Posted 2 years ago #

    I still cannot understand what does Conditional Display really works for? In what condition we need it?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic