• Hi , im trying to set a section visibility depends if a field (acf field) is empty or not
    The section belongs to a DIVI Template created with the Divi Theme Builder

    I Cant make it work !!

    The ACF field is called “padron-provincial”

    I tried this code .
    !empty(get_field(“padron-provincial”))

    But it seems always to be empty but is not

    Can anybody can help me ?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Unfortunately, we’ve never got this working on our site that uses ACF Fields.

    We have 6 sections that may or may not contain content, and have tried all the methods in the various support threads relating to ACF.

    If you do get it working, I’d love to see what you did.

    Good Luck

    Steve

    Try without !empty and with single quotes:

    get_field(‘padron-provincial’)

    I use it in a similar situation and it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ask for ACF empty field on a Div Template’ is closed to new replies.