You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the admin screen when editing a testimonial you can specify the order of the testimonials in a "Testimonial Data" field. It would be good to carry this through to the front end and allow ordering the list of testimonials on this field when using the shortcode.
This code can be used in the interim to accomplish this: add_filter ('testimonials_in_page_args', 'testimonials_sort_testimonial_order_meta');
function testimonials_sort_testimonial_order_meta($filtercont) {
$filtercont['meta_key'] = 'ivycat_testimonial_order';
$filtercont['orderby'] = 'meta_value_num';
$filtercont['order'] = 'ASC';
return $filtercont;
}
The text was updated successfully, but these errors were encountered:
In the admin screen when editing a testimonial you can specify the order of the testimonials in a "Testimonial Data" field. It would be good to carry this through to the front end and allow ordering the list of testimonials on this field when using the shortcode.
This code can be used in the interim to accomplish this:
add_filter ('testimonials_in_page_args', 'testimonials_sort_testimonial_order_meta');
function testimonials_sort_testimonial_order_meta($filtercont) {
$filtercont['meta_key'] = 'ivycat_testimonial_order';
$filtercont['orderby'] = 'meta_value_num';
$filtercont['order'] = 'ASC';
}
The text was updated successfully, but these errors were encountered: