Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
Hello !
I'm doing a small theme for a friend, using the custom field "rating" for the comments, and have troubles on two things :
First, how to display the "result" of the field elsewhere than at the bottom of the post-content ? Something like this maybe ?
<?php the_field('rating'); ?>
Secondly, is there a way to display the top 3 rating posts on the front page ?
I hope you will be able to help me, thank you in advance for your time !
Hi @rascasse,
First, how to display the "result" of the field elsewhere than at the bottom of the post-content ? Something like this maybe ?
There is a [wpdrating] shortcode for this purpose. Please read this support topic:
Secondly, is there a way to display the top 3 rating posts on the front page ?
I'm sorry, but wpDiscuz doesn't have such a feature. If you're a developer you can do it using the value of wpdiscuz_rating_count field in wp_postmeta database table.
Please note: wp_ is just a WordPress database tables default prefix. In your case, the prefix can be different.
Great, this is exactly what I need, thank you so much !