Advertisement:

Author Topic: Help with if/else statement for displaying custom field value  (Read 486 times)

armaniworld

  • Newbie
  • *
  • Posts: 23
  • Gwolla.co.uk
Help with if/else statement for displaying custom field value
« on: August 29, 2018, 01:44:49 pm »
Hello everyone,

For example i have a custom field called color, a dropdown with options (red,green).

on Loop-single and loop-premium i would like to display the value like so:
(I'm not good with PHP but you get my drift)

If color value is red = Do something here
Else if color is blue = Do something different
else if color is empty = Don't do anything here at all bruh



thanks!