Support » Fixing WordPress » Check if a custom field exists

  • Resolved thejonson

    (@thejonson)


    is it possible to check if a custom field exists and then if it does display some arbitrary text.

    My plan is to get wordpress to check if a post contains a custom field “photoBoxID” and if it does display the text “For Sale”, I have already got it using the value of “photoBoxID” to link to the shop page, I just need some way of advertising the fact that an image is on sale.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Check if a custom field exists’ is closed to new replies.