Forums

[resolved] [Plugin: GD Star Rating] HOW TO List all category votes (8 posts)

  1. Matt_NY
    Member
    Posted 2 years ago #

    I'm using this code to show voting block on single.php
    <?php wp_gdsr_render_article_thumbs(10, false); ?>

    Its a "thumbs-up" voting for category "movies" (id=2).

    How to show all posts of this category with voting number on some static page (page.php)?

    Tryed to use this code
    <?php wp_gdsr_render_rating_results(array('template_id' => 10, 'category' => 2, 'hide_empty' => false, 'min_votes' => 1)); ?>

    but it gives just text "Title Votes Rating Review" with html
    <table><thead><td class="title">Title</td><td class="votes">Votes</td><td class="rating">Rating</td><td class="rating">Review</td></thead><tbody></tbody></table>

    I have read all the docs, and nothing found. Please, HELP!

    http://wordpress.org/extend/plugins/gd-star-rating/

  2. Milan Petrovic
    Member
    Posted 2 years ago #

    You are using correct function, and it returns no votes. Template is wrong, because right now default one doesn't display thumbs, you need to make another one, and function call is wrong because by default it displays star ratings not thumbs.

  3. Matt_NY
    Member
    Posted 2 years ago #

    Thanks Milan!

    I've created a new template for "thumbs" voting, its id is "45". And one more for voting text with id "46".

    I have to create one more, for voting results page (shows only number of votes)?

    What about function, can you give the right code? I guess it should be one for thumbs rating, but I've found none.

    Please help, I don't know php, thats why I'm asking.

  4. Milan Petrovic
    Member
    Posted 2 years ago #

    You are still using wrong type of template. You need one that displays rating results not the one to display actual rating block.

  5. Matt_NY
    Member
    Posted 2 years ago #

    which function should I use, to display a thumb ratings results?

    not for a specific post only, the list "top 10" with titles and votes sorted by ASC.

  6. Matt_NY
    Member
    Posted 2 years ago #

    OMG, I've done it.

    Thank you Milan for a great plugin!

    Gave my five.

  7. Matt_NY
    Member
    Posted 2 years ago #

    I've used this code to show list of top "thumb" votes

    <?php query_posts(array('gdsr_sort' => 'thumbs', 'gdsr_order' => 'DESC', 'cat' => 5, 'showposts' => 100));

  8. arcanys182
    Member
    Posted 1 year ago #

    Hi,
    Need some help, In my homepage I displayed all the posts in the front with gd star ratings, on the left side I have a list of categories of posts. When I click the category links it goes to a page that shows posts related to that category.
    Now the problem is the gd star ratings won't show on each post on the category page.

    Please HELP me on this.

Topic Closed

This topic has been closed to new replies.

About this Topic