Support » Plugin: GD Star Rating » Displaying Stars on Other Pages that are not the Homepage with Custom Templates

  • Issue:
    In brief, I would like to simply recreate the posts and gd star rating stars on pages that are not the homepage, so users can vote once on either the homepage or vote on other pages. If this is not possible, how would I simply display any particular post of my choose and display the stars rating underneath it?

    Three posts are on a homepage, and the ratings block follows each one automatically in part with this Loop code:
    <?php while ( have_posts() ) : the_post() ?>
    <?php get_template_part( ‘entry’ ); ?>
    <?php endwhile; ?>

    The ratings system works fine for the three posts that display. On a different secondary page, I would like to show one of the three posts again, and I would like the ratings block to generate again for that particular post (so if there are already ratings in the database, it will show the current score). If there are no ratings in the database (the user hasn’t voted) then I’d like the user to be able to vote, with those changes reflected then on the homepage. If this is not possible, I would at least like to simply display the rating for that particular post with stars and average score. How would that be accomplished?

  • The topic ‘Displaying Stars on Other Pages that are not the Homepage with Custom Templates’ is closed to new replies.