• Resolved jdisenso

    (@jdisenso)


    Thanks for an amazing plugin! It has saved me tons of time.

    I currently have an ACF checkbox that has several values. I’m trying to return the post info for just one value. I can return all posts that have selected a value, but not the singular one I want.

    Here’s my code:

    [loop type=ministers]
    [array field=district_position_name value=’District Superintendent’]
    [field image]
    [field title-link]
    [field district_position_name]
    [field minister_email]
    [/array]
    [/loop]

    For some reason, the value is being passed over. What am I doing wrong?

Viewing 1 replies (of 1 total)
  • Thread Starter jdisenso

    (@jdisenso)

    Doesn’t need to be an array. Needs to be an if statement. Here is the answer:

    [loop type=ministers]
    [if field=district_position_name value=’District Superintendent’]
    [field image-link]
    [field title-link]
    [field district_position_name]
    [field minister_email]
    [/if]
    [/loop]

Viewing 1 replies (of 1 total)
  • The topic ‘ACF Checkbox Return value’ is closed to new replies.