show highest rated posts from the last day or week

I would like to show the highest rated posts from the last day or week on my homepage....how would you do this in the theme homepage template?

  • Philip John

    Hiya!

    Probably the easiest way to display posts by vote count would be using the supplied shortcode, [wdpv_popular]. Take a look at the plugin's settings page which shows the usage.

    Another option is to build a similar list into your template using the wdpv_popular() template tag. It works the same way as the shortcode and usage instructions are again included on the settings field.

    One more option, and much more complex, is to build a custom query. You'll need a healthy understanding of PHP and WP_Query for this which essentially requires querying the post_votes table and then running a custom loop which sorts based on the number of votes.

    Thanks,
    Phil

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.