WordPress.org

Ready to get started?Download WordPress

Forums

Last Viewed Posts
[resolved] How to add thumbnail? (5 posts)

  1. ronrrico
    Member
    Posted 2 years ago #

    Hello, I was wondering if someone could help me add the post thumbnail/image to this wonderful plugin.....

    Thanks,
    Ronnie

    http://wordpress.org/extend/plugins/last-viewed-posts/

  2. pey22
    Member
    Posted 1 year ago #

    Hllo ronrrico
    If it is still relevant you need to find this loop:
    foreach($zg_get_title as $zg_title_out) {}
    and add to it this:

    $post_id = $value+0;
    echo get_the_post_thumbnail($post_id, 'thumbnail');
  3. sydneycraig
    Member
    Posted 1 year ago #

    where exactly to add??

    foreach($zg_get_title as $zg_title_out) {$post_id = $value+0;
    echo get_the_post_thumbnail($post_id, 'thumbnail');}

    ??!!

  4. pey22
    Member
    Posted 1 year ago #

    Hello sydneycraig
    there is only one page in this plugin: last_viewed_posts.php
    the foreach loop is in line 99.

  5. sydneycraig
    Member
    Posted 1 year ago #

    thanks, i cant actualy get it working at all (without the images)
    just shows nothing even if i activate, add the widget and then browse thru a few posts!

    not sure why!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.