• Resolved eebee323

    (@eebee323)


    Hello,

    I’ve installed wordpress and have been tinkering with my site for a week or so. I am very impressed. I will migrate my sites from drupal.

    I have set my site set up to display a different header image depending on the page, which works fine, but really I would like it to be set up like this (don’t know how to code it):

    IF custom field=null (where the custom field is called ‘isbn’)
    IMG SRC=default.jpg
    elseif (display this at all other times)
    IMG SRC=otherimage.jpg

    This can’t be too hard can it?

    any help is greatly appreciated!

    Ian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter eebee323

    (@eebee323)

    i figured it out

    Great that you figured it out… Would you mind sharing your solution for the next guy who is struggling with the same issue (and finds your topic by searching)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP help with IF statement (connected to Custom Field)’ is closed to new replies.