Reply To: Show rating in search results



Hi Ernest,

thank you very much for your fast reply. I read the documentation and it helped me really out to get some custom fields shown in the description field of the searched results posts. But I haven’t managed to get the average score shown..

It is not a custom field which the user enters but more the score that different users give to a certain post (like reviews of a certain item?) I would like to show that score on the description text.

I tried adding this to the advance field:
<?php echo get_post_meta(get_the_ID(), ‘ratings_average’, true ); ?>

which is the function I call to get score but that doesn’t seems to work.

Do you may have any idea?



You must be logged in to view attached files.