fred_villa
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PostRatings] Place Code on Taxonomy PageIf you don’t have a lot of names in your taxonomy, my solution for categories may help
https://wordpress.org/support/topic/rating-categories-2/Forum: Plugins
In reply to: [WP-PostRatings] Rating categories ?OK, I’ve find a different way to do what I want.
I’ve added categories and tags to Pages.
function add_taxonomies_to_pages() { register_taxonomy_for_object_type( 'post_tag', 'page' ); register_taxonomy_for_object_type( 'category', 'page' ); } add_action( 'init', 'add_taxonomies_to_pages' );Then I created Pages for each Video Games declaring the Page to the associated category for the Video Game.
I needed to learn how to use WP_Query for the loop, a little hard at first but really interesting for the final result.So now my Platform pages are linking all pages for the Video Games, and a Video Game page is linking to posts for the Video Game category.
This way visitors will be able to rate Video Games and I could rank them by rate with the precious
'meta_key' => 'ratings_average', 'orderby' => 'meta_value_num', 'order' => 'DESC'Now I need a different kind of help.
Is there a function to call to display only %RATINGS_AVERAGE% on some places?
Cause using the_ratings() displays the stars. As I use 10 stars, on some place of the site I would prefer to only display the %RATINGS_AVERAGE%.Thanks for your help.
- This reply was modified 8 years, 8 months ago by fred_villa.
Forum: Plugins
In reply to: [WP-PostRatings] Rating categories ?Thanks for your answer.
It offers me to not continue to try to find a solution when there’s none.