<?php echo get_post_meta( get_the_ID(), 'ratings_average', true ); ?>
The problem is that doesn’t work on the main page, there is no $ post-> ID on the main page because it is a static page. Can you get the Total Average without knowing the post id?
<div class="social-chunk-text">
<?php $average = get_post_meta( get_the_ID(), 'ratings_average', true );?>
<div class="social-chunk-accent">
<?php echo $average*10?>
</div>
<div class="social-chunk-description">Media</div>
/div>
I want to display the Total Average of all records, not one post. Maybe you can pull it out of the admin panel?
https://test-5.vbbn.in/
-
This reply was modified 1 year, 10 months ago by
abelous.
-
This reply was modified 1 year, 10 months ago by
abelous.
thats what I looking for! thank you!
hi Lester! is that float or int value? I have only one rating and not see decimal dot