Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm building a website that uses the GD star rating plugin.

Right now, I'm using the following code to retrieve two posts of the current page (a custom post type called bbp_topic) and sort them by vote:

<?php query_posts('gdsr_sort=thumbs&posts_per_page=2&post_parent='.$post->ID); ?>

I would like now to only retrieve those post that have 1 or more thumbs up.

Any suggestions?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

gdsr_ftvmin=1 is probably the query parameter you need

share|improve this answer

Have you tried

gdsr_sort=rating&gdsr_order=desc
share|improve this answer
    
I don't think that would work since I don't want to retrieve posts that have 0 or less thumbs. –  janoChen Mar 24 '11 at 9:44

Did you ever figure this out? I want to provide checkboxes so users can select which star ratings to show.

As I understand it gdsr_ftvmin sets the minimum number of votes cast rather than the star rating itself.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.