WordPress.org

Forums

Advanced Custom Fields
How to conditionally display some html dependent upon the specific value (2 posts)

  1. I like screenshots
    Member
    Posted 1 year ago #

    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/

  2. OrangeDesign
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic