Archived topic
Make element appear instead of another if X, Y, and Z custom fields are filled
3 replies · Started by William on November 11, 2022
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
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
Yes that works perfectly, thank you!
No problem :)