WordPress.org

Forums

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

  1. Please Add Screenshots
    Member
    Posted 10 months 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 10 months ago #

Reply

You must log in to post.

About this Plugin

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

About this Topic