Support » Plugin: Thumbs Rating » Recent Top Rated Posts

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ricard Torres


    Hello Steve

    The plugin does not store any information other than the number of positive and negative votes. Thus, you can’t list or filter by date.

    Best regards.

    Thread Starter stevethebartender


    Thanks for the super quick response Ricard!

    I thought this is what Azamat was referring to in the linked post?


    Plugin Author Ricard Torres


    Ah, I see. Perhaps I went too fast.

    Right, yes.. so you can use the order by date to list the posts with that order.

    However, what the other user did is modify the code of the plugin itself to extend that date query.

    The file is thumbs-rating.php inside the plugin folder.

    You will need a little of PHP knowledge to do that. I haven’t done it myself but I imagine he extended the array of arguments to include (around line 371):

    'date_query' => array(
            	'after' => '1 month ago',

    So it would only show the posts with that time frame.

    More info on the WP_Query possible arguments:

    If you do end up modifying the plugin, I would suggest also bumping the version number to prevent any auto-update from overwriting it. The version can also be found in the thumbs-rating.php (top of the file)

    Best of luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recent Top Rated Posts’ is closed to new replies.