WordPress.org

Ready to get started?Download WordPress

Forums

Static Random Posts Widget
[resolved] show post with thumbs (2 posts)

  1. nextart
    Member
    Posted 1 year ago #

    hi great plugin, but how show the thumbnails post too?
    thanks
    Maurizio

    http://wordpress.org/extend/plugins/static-random-posts-widget/

  2. nextart
    Member
    Posted 1 year ago #

    i solve it
    in file static-random-posts.php at line 117 you have:

    $posts_string .= "<li><a href='" . get_permalink($post->ID) . "' title='". esc_attr($post->post_title) ."'>" . esc_html($post->post_title) ."</a></li>\n";

    add this :
    ". get_the_post_thumbnail($post->ID, thumbnail) . "<br /> before <a href='"
    like this one

    $posts_string .= "<li>". get_the_post_thumbnail($post->ID, thumbnail) . "<br /><a href='" . get_permalink($post->ID) . "' title='". esc_attr($post->post_title) ."'>" . esc_html($post->post_title) ."</a></li>\n";

    now you have thumbs too....

    bye from italy
    Maurizio

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.