WordPress.org

Ready to get started?Download WordPress

Forums

KK I Like It
How to sort posts by recent likes (23 posts)

  1. kevinsteger
    Member
    Posted 2 years ago #

    My current theme has the following for it's sorting of posts:

    query_posts($query_string . ‚&cat=’.$query_cats);

    I would like to replace this with:

    Sum of likes for the last 30 days, descending.

    Can someone help me with that? Thank you.

    http://wordpress.org/extend/plugins/kk-i-like-it/

  2. Krzysztof Furtak
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,
    Unfortunately it will not be that simple.

    First, you select from the database all likes from the last 30 days, and group them according to ID posts.

    Then you must choose from the database all posts by ID.

    And display them in the loop.

  3. kevinsteger
    Member
    Posted 2 years ago #

    I understand the theory, I'm looking for help with the code.

    How about starting with just total likes desc?

    Thanks for your help.

  4. Krzysztof Furtak
    Member
    Plugin Author

    Posted 2 years ago #

    Now I'm really busy, but if you give me 1-2 days i try give you ready solution.

  5. kevinsteger
    Member
    Posted 2 years ago #

    Thank you!

  6. Sim2K
    Member
    Posted 2 years ago #

    That sounds like a good idea. being able to list the best likes over the past set number of days and group them and order them by the most liked first and then have that as a widget.

    e.g.

    Top 10 most liked over the past week.

  7. kevinsteger
    Member
    Posted 1 year ago #

    Any news on this?

    Thanks.

  8. kevinsteger
    Member
    Posted 1 year ago #

    I would gladly settle for just the sum of all likes. I can easily delete old likes in the DB to keep it current. Please help me do this. Thanks.

  9. jarno83
    Member
    Posted 1 year ago #

    Hi, it's a nice plugin :) My site also needs TOP widgets like top of the day, week and month. It would be nice to have them in one widget, like from top you could select the period. Then this plugin will be the best one :)

    Thanks.

  10. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    Unfortunately, at this moment I have a lot of important projects and I have no time. The work on the plugin will be resumed within a month.

  11. papamak
    Member
    Posted 1 year ago #

    is it possible to set the number of likes into a custom field on a post?
    i think it's easy to order the posts based on a number of likes if there is the above custom field....

  12. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    This is not a bad idea.
    I’ll try to change it in one of the next version of the plugin.

    Thank You!!!

  13. papamak
    Member
    Posted 1 year ago #

    thanks for the answer......what about the release date of the next version?
    i'm working on a project and i want to know if i use this plugin....

  14. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    I think that next week I will publish a new version of the plugin. At the moment I can't give you a specific date. Sorry.

  15. papamak
    Member
    Posted 1 year ago #

    is it possible to the next version contain the feature of the custom field (see previous post)?

    i need this feature and i want to know if i must wait the next version or not...

    thanks

  16. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    Of course, in next version Ill add this future.

  17. papamak
    Member
    Posted 1 year ago #

    can you inform us about all the new features of the next version?
    we'll waiting for this cause your plugin is really great.

  18. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, no problem and thank you.

  19. papamak
    Member
    Posted 1 year ago #

    are there news about new version?

  20. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    I'm working on it ... pls give me 2-3 days

  21. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,
    New version of the plugin (v1.7) is already available

  22. kevinnet
    Member
    Posted 1 year ago #

    hi, where to change the heart image with my own image? thanks

  23. Krzysztof Furtak
    Member
    Plugin Author

    Posted 1 year ago #

    Hello kevin,
    You must add this code to your CSS file:


    .kklike-ico {
    background: url("LINK TO YUOR IMAGE") no-repeat scroll 0 0 transparent !important;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.