Are you trying to sort the reviews or the pages that have assigned reviews?
If reviews, please give an example of how you want to sort them by (they sort desc by date by default).
-
This reply was modified 8 years, 8 months ago by
Gemini Labs.
Hi!
I’m trying to sort the post/post-type with assigned review..
I setup a posttype eg: ‘my_product’
in my single-my_product.php posttype file, i assign the short_code tie with the post type
<?php echo do_shortcode('[site_reviews_form assign_to="'.get_the_ID().'"]'); ?>
So in the other hand, on other pages… I’m using WP_Query to pull the ‘my_product’ contents, currently i’m sorting the orders by post_date… not sure if I can sort via site_reviews_summary?
$args['post_type'] = 'my_product'
$args['orderby'] = 'post_date';
$args['order'] = 'DESC';
$query = new WP_Query( $args );
thankyou!
-
This reply was modified 8 years, 8 months ago by
mavichow.
So you want to sort your products by their overall rating score?
Yeap, correct…. does the plugin allow us to do that?
appreciate your help
Apologies for the delay.
At the moment there is no easy way to do this as it would require some custom functions and advanced queries. Give me some time to think about it and I will see if I can come up with a solution.
Thanks! appreciate your help….