Using ACF With GeneratePress Elements

  • 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

  • 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/

  • Hi Fernando,

    Great, thanks for your help! I worked it out.

    Cheers Jodie

  • You’re welcome, Jodie!

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