• Resolved matt_ny

    (@matt_ny)


    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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter matt_ny

    (@matt_ny)

    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.

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

    Thread Starter matt_ny

    (@matt_ny)

    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.

    Thread Starter matt_ny

    (@matt_ny)

    OMG, I’ve done it.

    Thank you Milan for a great plugin!

    Gave my five.

    Thread Starter matt_ny

    (@matt_ny)

    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));

    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.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: GD Star Rating] HOW TO List all category votes’ is closed to new replies.