WordPress.org

Support

Support » Themes and Templates » If Else statement for custom field keys

If Else statement for custom field keys

  • I am trying to setup a custom field to add a header image to some of my posts.
    I have accomplished the above but need to get more specific as some of my posts do not have images.

    How would I set it up so that if a post has the “Image” key then it will display the image otherwise the post should do nothing?

    Let me know if you need more info. Thanks.

  • The topic ‘If Else statement for custom field keys’ is closed to new replies.
Skip to toolbar