WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Popular Posts with Thumbs (4 posts)

  1. jhodgson
    Member
    Posted 2 years ago #

    Hey guys, just added a few lines to the plugin to get it to handle thumbnails in the link list, like this:

    // %post_thumbnail% by James C. Hodgson, Jr
             if ( FALSE !== strpos( $instance['format'], '%post_thumbnail' ) ) {
                // ...and take yo picture; i wanna get witcha. I won't cuss or hitcha!
                $thumb = get_the_post_thumbnail( $post['post_id'], 'thumbnail');
                $replace['%post_thumbnail%'] = $thumb;
             }

    Don't know if it's of use to anyone else, but if so, there it is. Any hope of getting this functionality into the main codebase?

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Hi James,

    The plugin already handles thumbnails by itself. Where did you add this code?

  3. jhodgson
    Member
    Posted 2 years ago #

    Aw crap. I think I've confused "WordPress popular posts" with "WordPress.com Popular Posts"

    Sorry. Easy mistake to make :(

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Hahah no problem, not the first time and surely won't be the last.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic