Support » Plugin: WP-PostRatings » rating for taxonomy or pages

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Lester Chan


    Pages: Yes
    Custom Taxonomy: Technically it should be possible, but I have not tested it


    Yes it shows but than the rating is always for the last coupon of this store and not for the store itself 🙁 So if the coupon is not valid anymore and removed the store has no rating. I need the rating for the store not the coupon!

    Plugin Author Lester Chan


    That means you did not place the ratings code within the WordPress loop and out of it and hence it can’t find the correct ID for the ratings. As a rule of thumb for newbies, try placing it right after the_content() to see if it works in the first place.

    well that is the problem the content are the coupon but they listed with in a store its calles with <?php echo $term->name; ?> and i need to get rating for these term! Any idees?

    Plugin Author Lester Chan


    Ahh I see, in that case I don’t thing it is compatible with custom taxonomy, it should work with custom post format I think

    Do you think there is another way to integrate the rating. Within my store sides like example.
    The taxonomy calls all coupon from this store. However if I add <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?> it shows the stars for the first or last coupon (depends of the position of the code) but i need a generall Rating for the store.
    I call the store infos with:

    <?php // grab the store meta data
    						$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
    						$stores_url = esc_url(get_metadata(APP_TAX_STORE, $term->term_id, 'clpr_store_url', true));
    						$dest_url = esc_url(get_metadata(APP_TAX_STORE, $term->term_id, 'clpr_store_aff_url', true));
    						// if there's a store aff link, then cloak it. else use store url
    						if ($dest_url)
    							$url_out = esc_url(home_url(CLPR_STORE_REDIRECT_BASE_URL . $term->slug));
    							$url_out = $stores_url;

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Really need this and I am stuck 🙁

    still nobody, need a store rating

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘rating for taxonomy or pages’ is closed to new replies.