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

    (@quicoto)

    Hi Dan,

    The plugin does not store or calculate any ratings. It just store the number of upvotes and downvotes for each post.

    You’d have to create your own functions to print and calculate that information.

    Cheers!

    Thread Starter startuproadmapp

    (@startuproadmapp)

    Hi Ricard,

    Thanks for the answer – I think I phrased it incorrectly. I did not mean ratings, but just the widget (thumbs up/down) to be displayed on list items in posts. The number of upvotes and downvotes for each post is enough, I just need it for the ‘buttons’ to be displayed on each individual line.

    Cheers,
    Dan.

    Plugin Author Ricard Torres

    (@quicoto)

    Alright Dan, as you can see in the Installation tab you can use this snippet:

    <?=function_exists('thumbs_rating_getlink') ? thumbs_rating_getlink() : ''?>

    This must be inserted within the WordPress loop http://codex.wordpress.org/The_Loop

    How do you print the posts lists? Is that a shortcode of some kind or your own code?

    You’d need to have access to that “loops” in order to put the snippet there.

    Hope this helps.

    Thread Starter startuproadmapp

    (@startuproadmapp)

    Thanks again Ricard.

    I understand I would be able to put the snippet into the loop, but I’m having a hard time pinpointing a way to target only li elements in posts.
    I was thinking of creating a custom post type (or editing an already existing one such as quote) and editing the “content-quote.php” to make it so that all /li
    li elements on ‘quote’ post types will contain your widget after the content but before the /li

    Is that even possible? Maybe should be looking at single-post.php and not the custom-post php? I’m a noob in php…

    Thanks,
    Dan.

    Plugin Author Ricard Torres

    (@quicoto)

    Hey Dan,

    I’m not sure how do you create those posts lists. Are they dynamic? Can you identify what theme file is creating them?

    Personally I’d create a page template http://codex.wordpress.org/Page_Templates

    Then assign this template to a Page in the admin.

    Within that template file I’d just print different loops with different orders or queries. In each loop I’d be able to use the thumbs rating function to print the buttons.

    Thread Starter startuproadmapp

    (@startuproadmapp)

    Hi Ricard,

    They’re really just simple list elements that I write in the individual posts manually with tinyMCE.
    There isn’t a way to use a shortcode to call the widget anywhere I place the it no?
    All of these plugins for voting up/down have the shortcode function, but only in their paid or pro versions.

    Cheers,
    Dan.

    Plugin Author Ricard Torres

    (@quicoto)

    Oh, I see.

    Yes, the Thumbs Rating plugin provides a shortcode for you to use:

    http://wordpress.org/plugins/thumbs-rating/faq/

    However the buttons are linked to the whole post, the post containing this lists you’ve manually created.

    Like I said, you would have to create a page template and go from there to have a button per LI element.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Vote on List Items in Posts’ is closed to new replies.