IF no attached image THEN do this (1 post)

  1. I like screenshots
    Posted 5 years ago #

    I'm looking for a conditional piece of code in a single post or page that does the following in single.php (inside the loop)

    IF there is no image attached to the post then do THIS (anything from another php script to some html/text) OTHERWISE display the image as per the post.



Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by I like screenshots
  • This topic is not resolved
  • WordPress version: 2.9.1