Jump to content


WordPress Most Popular Posts


  • Please log in to reply
No replies to this topic

#1 Mr.XXIV


    TSM > C9

  • Tech Issues Solved: 1
  • Joined: 30-April 11
  • Location: Durham, North Carolina
  • OS: OS X Yosemite
  • Phone: iPhone 5s

Posted 07 March 2013 - 10:22

I'm using a plugin named "WordPress.com Popular Posts" and it works with JetPack to take advantage of the stats so I can view the most popular posts for up to 7 days or a month.

The only problem I have with it is that it won't give me the thumbnails that are assigned to it, and even if I use the wordpress thumbnail function (see below), I end up seeing 3 of the same thumbnails from the latest post. It's mainly because I can't get the ID of this post view query. Does anyone know how to get this ID so that the thumbnails will display correctly?

<?php WPPP_show_popular_posts( "title=&number=3&days=1&thumbnail_size=220/250&format=<a href='%post_permalink%' title='%post_title_attribute%'>" . get_the_post_thumbnail($post->ID,'thumbnail') . "%post_title%</a>" );?>