• Apologies in advance if this is super simple, but I have trawled the support threads to no effect for me unfortunately!

    I have two ACF fields that each user has on their profile

    anticipation-score
    difference-anticipation

    How can I show a piece of text if the anticipation-score is 3 and the difference-anticipation is 2

    Thank you so much!

    • This topic was modified 4 years, 6 months ago by keeno1979.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Use [if]

    [if field=anticipation-score value="3"] 
    DO WHATEVER YOU WANT
    [/if]

    Or use if nested if neccessary:

    [if  field=anticipation-score value="3"]
    [-if field=difference-anticipation valeu="2"]
    DO ONE THING
    [-else]
    DO SOMETHING ELSE
    [/-if]
    [else]
    DO SOMETHING
    [/if]
    Thread Starter keeno1979

    (@keeno1979)

    Hi there @polarracing, thank you so much for replying to this! I really really appreciate it!

    So I have inserted

    [if field=anticipation_score value=”3″]
    DO WHATEVER YOU WANT
    [/if]

    And can confirm that the field on my profile anticipation_score is 3

    However nothing is displayed. It’s very odd.

    Oh, sorry it was a user field:

    Have a look at the user section of the documentation and use

    “user_field”

    instead of field. Then it should work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Showing content if there is a difference in user fields’ is closed to new replies.