-
jodiemorgan
Hi folks,
I want to use ACF to create a checkbox to appear in the backend of each of my posts, so when I check it, the GeneratePress Element I use to make an Affiliate Disclosure appear at the bottom of the first image on the post appears on that post.
Is this possible? Thanks so much for your help!
Cheers Jodie
-
Fernando
Hi Jodie,
It should be possible.
Just retrieve your Post Meta value, and set a Conditional Statement to set the display of a Block Element through the filter
generate_block_element_display. Reference: https://docs.generatepress.com/article/generate_element_display/ -
jodiemorgan
Hi Fernando,
Great, thanks for your help! I worked it out.
Cheers Jodie
-
Fernando
You’re welcome, Jodie!
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.