WordPress.org

Support

Support » Themes and Templates » Thumbnail next to excerpts

Thumbnail next to excerpts

Viewing 1 replies (of 1 total)
  • Adam
    Member

    @addrum

    You can do something like this:

    <?php if (has_post_thumbnail()) : ?>
        <div class = "post-thumb">
            <a href="<?php echo the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
        </div>
    <?php endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Thumbnail next to excerpts’ is closed to new replies.