• Resolved tankless

    (@tankless)


    I’m creating a new website for most of like pictures.
    Also I want to create a page on my blog that shows up the most rated pictures/video’s of the past 24hrs. Not only the title of the post and the link to the post but showing also to content inside.

    Since I’m very new to the scripting world, I’ve read a couple threads and I saw this shortcode:
    [thumbs_rating_top type="positive" posts_per_page="10" post_type="post" show_votes="no"]

    This shows only 10links with the title, Does anyone know which script I need to edit? You can compare it like 9gag.com, the homepages shows you the highest rated content.

    Thank you very much.

    https://www.ads-software.com/plugins/thumbs-rating/

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

    (@quicoto)

    Hi there,

    Without any knowledge of php it will be hard to achive that with my Thumbs Rating plugin.

    Perhaps there’s other rating plugins out there that will give you more functionality.

    Regarding your question: you’d have to query the posts by meta_key and show the content or any other information within the loop.
    Also, the plugin does not store any information regarding the time of the vote. I just saves the total votes for each post.

    Good luck!

    Thread Starter tankless

    (@tankless)

    Thanks, I cant find any database records of your script.

    So I can make it by my self to get the likes from database.

    Plugin Author Ricard Torres

    (@quicoto)

    Hi there,

    It’s stored in the wp_post_meta table

    You can sort them by meta_key (_thumbs_rating_down or _thumbs_rating_up)

    If you check the plugins source code you’ll find I’m using this functions to get the values:

    get_post_meta($post_ID, '_thumbs_rating_down', true)

    Learn more about it here: https://codex.www.ads-software.com/Function_Reference/get_post_meta

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Most liked paged past 24hrs’ is closed to new replies.