Ready to get started?Download WordPress


[resolved] rating for taxonomy or pages (8 posts)

  1. joloshop
    Posted 7 months ago #

    how can i use this plugin to rate taxonomy or single sides? I woul like to rates stores on my side! please see http://joloshop.de



  2. Lester Chan
    Plugin Author

    Posted 7 months ago #

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

    See http://wordpress.org/plugins/wp-postratings/installation/

  3. joloshop
    Posted 7 months ago #

    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!

  4. Lester Chan
    Plugin Author

    Posted 7 months ago #

    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.

  5. joloshop
    Posted 7 months ago #

    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?

  6. Lester Chan
    Plugin Author

    Posted 7 months ago #

    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

  7. joloshop
    Posted 7 months ago #

    Do you think there is another way to integrate the rating. Within my store sides like example. http://gutscheincloud.info/shops/harlem
    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 :-(

  8. joloshop
    Posted 2 weeks ago #

    still nobody, need a store rating


You must log in to post.

About this Plugin

About this Topic