Support » Fixing WordPress » IF no attached image THEN do this

  • 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.



  • The topic ‘IF no attached image THEN do this’ is closed to new replies.