WordPress.org

Support

Support » Plugins and Hacks » Last Viewed Posts » [Resolved] [Plugin: Last Viewed Posts] How to add thumbnail?

[Resolved] [Plugin: Last Viewed Posts] How to add thumbnail?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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');

    where exactly to add??

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

    ??!!

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

    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!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Last Viewed Posts] How to add thumbnail?’ is closed to new replies.
Skip to toolbar