• I have set my posts to be sorted in descending order of the rating however I have noticed that the pagination isn’t working with that even when I click on the page-2 link it still show the posts from page 1

    here is what I have used for sorting

    $category_id = get_query_var('cat');
    	query_posts(array('gdsr_sort' => 'thumbs', 'gdsr_order' => 'DESC', 'cat' => $category_id ));

    can you please comment that how can I get pagination to work with this ?

Viewing 1 replies (of 1 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    Your query doesn’t handle page. Calling it like this will remove all previously set query parameters including page. It’s better to work with WP_Query object, and add new parameters for sorting, and than run init() for the object again to pick up new parameters.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: GD Star Rating] Pagination and Sorting Posts in ascending/decending order ?’ is closed to new replies.