WordPress.org

Ready to get started?Download WordPress

Forums

The Attached Image
Is it possible to use conditional code with this plugin? (1 post)

  1. deeve
    Member
    Posted 1 year ago #

    Is it possible to use conditional code with this plugin something similar to:

    <?php If ($the_attached_image !== '') { ?>
    <?php the_attached_image('img_size=medium&title_link=none'); ?>
    } else {
    echo '<img src="/wp-content/themes/platform/img/nopostimage.png" alt="" title="" />';
    	}
    } ?>

    Thanks.

    http://wordpress.org/extend/plugins/the-attached-image/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic