Support

Account

Home Forums Backend Issues (wp-admin) How to make Field Group conditional on custom post type hierarchical parent?

Solved

How to make Field Group conditional on custom post type hierarchical parent?

    • lkraav

    • January 30, 2014 at 11:16 pm

    Latest ACF only seems to support conditionals on Pages, so that’s I guess a feature request to support CPT-s, too? But Even with Pages alone, I’m looking for an option to say “show this field group ONLY IF page has no parent”.

    • James

    • January 31, 2014 at 11:09 am

    Hi @lkraav,

    CPT do have changeable conditions for being shown? When you go to the ACF Add/Edit feild group page, it is below where you add the fields.

    What you want, is to change the conditions to “Page” “is not equal to” “Child”

    Let me know if this fixes your problem,

    Cheers

    • Elliot

    • February 2, 2014 at 9:50 am

    Hi guys.

    Just wanted to clarify, the location rule should be called ‘page type’, and there are options for parent, child, etc.

    • James

    • February 3, 2014 at 10:01 am

    Yes, sorry! My mistake

    • lkraav

    • February 3, 2014 at 11:29 pm

    Thanks guys. This indeed seems to work. It was unintuitive for me to look for “Page Type” when I was dealing with “Post Type” logic.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.