Forums
(@sybiloniti)
3 months ago
Hi,
I can’t get your solution to work.
In Unlimited Element HTML item template :
{% set rating = getPostMeta(item.post.id,"_glsr_average") %}
Then in a div :
{% set stars = getByPHPFunction('get_rating',rating) %}
3 months, 1 week ago
I found out another way ! In Unlimited Elements I got the rating with _glsr_average post meta and then I used :
_glsr_average
function get_rating($rating) { echo apply_filters('glsr_star_rating', null, $rating);}
Regards
I made a mistake in the previous message : this is what I used in the shortcode, in a loop :
assigned_posts="item.post_list.id" instead of assigned-terms
assigned_posts="item.post_list.id"
I also tried with post_id but nothing worked.