Site logo

[Resolved] Make element appear instead of another if X, Y, and Z custom fields are filled

Home Forums Support [Resolved] Make element appear instead of another if X, Y, and Z custom fields are filled

Home Forums Support Make element appear instead of another if X, Y, and Z custom fields are filled

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2411848
    William

    Hi there,

    Is there a way to make an element replace another element in the same position (such as a page hero) if certain custom fields are filled in (ACF custom fields)?

    Kind regards,

    Will

    #2411855
    Leo
    Staff
    Customer Support

    Hi Will,

    I would assume this is the filter from GP you need:
    https://docs.generatepress.com/article/generate_element_display/

    I’d recommend checking with ACF’s support team to see the exact if condition you would need as that’s not listed under the standard WP conditional tags:
    https://codex.wordpress.org/Conditional_Tags

    #2424383
    William

    Yes that works perfectly, thank you!

    #2424465
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.