WordPress.org

Support

Support » Plugins and Hacks » Advanced Custom Fields » How to conditionally display some html dependent upon the specific value

How to conditionally display some html dependent upon the specific value

  • I have a ‘select’ field type with 2 option (yes or no). What is the conditional code I would use if i wanted to display a different piece of html dependent on the field’s value. For example…

    If the option selected is “yes” then display “ABCDEFGHIJ”
    or if the option is “no” then display “qwertyui”
    else display “12345566”

    Thanks heaps.

    Pete

    https://wordpress.org/plugins/advanced-custom-fields/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to conditionally display some html dependent upon the specific value’ is closed to new replies.
Skip to toolbar