• varpenny

    (@varpenny)


    I want to use several display rules for a post fields group and each rule contains post type, term etc.

    For example, I have a post fields group, a custom post type named case and two category named blog and partner. The group is shown when any condition of below is met:
    1. post type is post and in blog category
    2. post type is case and in partner category

    I can’t find any solution. Any help will be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    In each Post Field Group edit screen, you should see a section called “Where to include this Field Group”.

    If you edit that, you can choose Post Type, Taxonomy and more to be used as conditions to show this group.

    This should help you further:
    https://wp-types.com/documentation/user-guides/types-custom-fields-conditional-display/

    Thread Starter varpenny

    (@varpenny)

    Hi @bedas,

    I knew it. But it can only set the relationship between each condition item (post type, taxonomy etc), not between each set of condition items.

    Let’s assume the following:

    A means post type is post;
    B means category is blog;
    C means post type is case;
    D means category is partner;

    In edit post field group page, I select post and case in post type tab, check blog and partner category in taxonomies tab and choose ‘when ANY condition is met’.

    At last, the display rule is A or B or C or D, but what I expect is A and B or C and D.

    Thanks,
    Penny

    Anonymous User 14808221

    (@anonymized-14808221)

    You cannot do A and B or C and D
    Not on one Field Group.

    You can do A and B or A or B

    TO have a control like you mention, you would need to create a second Field Group with the same fields that shows only if A and B and the other if C and D.

    The complex relation as you mention is not possible with Toolset Types, unless you create another field group

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set Multiple Display Conditions for Post Fields Group’ is closed to new replies.