Latest Posts by Author
Showing the thumbnail from custom field (2 posts)

  1. Nikolas
    Posted 4 years ago #

    Hello how can I show the thumbnail saved on a custom field?
    I used to get it using <?php echo get_post_meta($post->ID, "Thumbnail", true); ?>

    Thank you for this plugin!

  2. Alex Mansfield
    Plugin Author

    Posted 4 years ago #

    You can add post thumbnails to list by changing line 24 of the latest-posts-by-author.php file from:

    $html .= '<li><a href="'.$numpost->guid.'">'.$numpost->post_title.'</a>';


    $html .= '<li>' . get_the_post_thumbnail($numpost->ID) . '<a href="'.$numpost->guid.'">'.$numpost->post_title.'</a>';

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Latest Posts by Author
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic