WordPress.org

Support

Support » How-To and Troubleshooting » IF no attached image THEN do this

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.

    Thanks

    Pete

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