WordPress.org

Ready to get started?Download WordPress

Forums

Conditional Default Image (1 post)

  1. dadvan
    Member
    Posted 12 months ago #

    I am using a plugin called Multiple Thumbnail Image I have run into a situation where I cant get the syntax right. Please assist:

    <?php if (class_exists('MultiPostThumbnails')) : MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'secondary-image'); } else ?>
    								<img src="/images/icon.png" alt="<?php the_title(); ?>" />

    [No bumping, thank you.]

Reply

You must log in to post.

About this Topic