L
L
ligisayan2016-04-03 01:16:24
Ratings
ligisayan, 2016-04-03 01:16:24

How to move a block with a rating to the top of the block?

Hello! There is a demo site with Easy Testimonials plugins for setting characters and a WP-PostRatings plugin for rating users of the site. On the page , I displayed the characters in the form of a grid using a shortcode

[testimonials_grid theme="light_style" cols="3" responsive="1" equal_height_rows="1" testimonials_per_page="10" paginate="0" count="10" orderby="date" order="ASC" show_title="1" use_excerpt="1" show_thumbs="1" show_rating="stars"]

and in the rating plugin file easy-testimonials.php I replaced the line
$testimonial['rating'] = get_post_meta($postid, '_ikcf_rating', true);

on the
$testimonial['rating'] = get_post_meta($postid, 'ratings_average', true);

thereby replacing the standard rating of the Easy Testimonials plugin with an additional one. WP-PostRatings meta field.
Now the question is: how to put the rating at the top right after the title, when according to the shortcode properties show_rating=before and show_rating=stars are mutually exclusive? and is it possible to somehow sort the displayed characters not by date, but by rating?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question