• I want to display my recent WordPress posts outside of wordpress on my custom website. I am able to do this pretty well, but my question is how can I add a thumbnail to the posts? This is my current code:

    <?php while (have_posts()): the_post(); ?>
    <h2><?php the_title(); ?></h2>
    <?php the_excerpt(); ?>
    <p><a href="<?php the_permalink(); ?>">Read more...</a></p>
    <?php endwhile; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding Thumbnails to The Loop outside of WordPress’ is closed to new replies.