Ready to get started?Download WordPress


Conditional Default Image (1 post)

  1. dadvan
    Posted 1 year 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.]

Topic Closed

This topic has been closed to new replies.

About this Topic