WordPress.org

Ready to get started?Download WordPress

Forums

Custom Community
Thumbnail next to excerpts (2 posts)

  1. Amasya
    Member
    Posted 5 months ago #

    Am I missing the easy way to display thumbnails next to excerpts? Just can't seem to find it.

    http://www.morpaamission.dk

  2. Adam
    Member
    Posted 5 months ago #

    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; ?>

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.