WordPress.org

Ready to get started?Download WordPress

Forums

IF no attached image THEN do this (1 post)

  1. Pete
    Member
    Posted 4 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.

    Thanks

    Pete

Topic Closed

This topic has been closed to new replies.

About this Topic