WordPress.org

Ready to get started?Download WordPress

Forums

kk Star Ratings
[resolved] Top Rated Posts on own Page (10 posts)

  1. dobryfun
    Member
    Posted 2 years ago #

    Hi,
    first of all I´d like to say "Thank you!" for this cool plugin. I really like, how lightweight and easy to use it is.

    Great work!

    As I am relatively new to WordPress I wonder if there is an easy option to create a "top posts" page that shows all posts based on the ratings from this plugin?

    Do I have to to develop an own template for my theme for this to work? What would be the right code?

    Would be cool if someone has an idea on how to get this done.

    Thanks in advance!

    http://wordpress.org/extend/plugins/kk-star-ratings/

  2. Kamal Khan
    Member
    Plugin Author

    Posted 2 years ago #

    Hi

    Thank you for appreciating the work.

    I have provided a function which can be used to query the top rated posts in theme files for developers.

    You can also edit the query_posts where appropriate and use the code below to query the post..

    query_posts('meta_key=_kk_ratings_avg&orderby=meta_value&order=DESC');

    Hope that helps

  3. dobryfun
    Member
    Posted 2 years ago #

    Hey,
    thank you for your quick and good answer!

    Thanks to your post I was able to create what I was looking for!

  4. Kamal Khan
    Member
    Plugin Author

    Posted 2 years ago #

    pleasure

  5. CPDesign
    Member
    Posted 1 year ago #

    Agreed on awesome plugin!

    Still unclear on how to create a unique page that pulls the top 10 posts...

    I have create a custom page template called 'Top 10', but not sure how to query the top 10 posts...

  6. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    A template tag can be used.
    Please refer to the info section in the plugin tab

  7. CPDesign
    Member
    Posted 1 year ago #

    hmm, yea I have looked at that, but still not getting it... happy to make $25 donation to the plugin if you can provide the exact PHP to add to the template

  8. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for that. Can you send me the link to where you want this done?

  9. CPDesign
    Member
    Posted 1 year ago #

  10. Kamal Khan
    Member
    Plugin Author

    Posted 1 year ago #

    Can you give me access to the admin so I can edit the theme file in use? You can send that via the contact form here

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic