Highest Rated Post In A Category - with additional info (5 posts)

  1. martin
    Posted 4 years ago #


    I like your plugin very much, thumbs up!

    I have only one problem:
    When I use your code to display the higest rated posts..

    <?php if (function_exists('get_highest_rated_category')): ?>
            <?php get_highest_rated_category(CATEGORY_ID); ?>
    <?php endif; ?>

    .. everything works fine, but the only information that is shown is the Postname and the votes. I would like to show the 'normal' information, including excerpt/date of posting/... , like in the loop. Is it possible to show the loop information while having the posts listed by ratings.

    Kind regards,


  2. lukelukeluke
    Posted 3 years ago #

    Did you find an answer for this martin? I'd like to get it to display featured image thumbnail but can't work it out.

  3. kevin heath
    Posted 3 years ago #


    You can set up some of the template using the ratings templates options in the ratings admin.

    For example you can add excerpt and content etc. Unfortunately the %content% is not displaying embedded video.

    I'm trying to find a way of adding the content without using the template and if I find one I'll post it here in case it helps.

    I want to display the highest rated video on myt site but because I've already used the ratings options in one query I can not use it a second time because it stops the pagination. :(

  4. ht3
    Posted 3 years ago #

    Has anyone had any luck with this?
    I'm trying to post the featured images for my top rated posts

  5. lukelukeluke
    Posted 3 years ago #

    I managed to get the thumnail, title and rating displayed in a page by putting this inside the loop in a page template if it helps -

    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail('thumbnail', array('class' => 'alignleft'));?> </a>
    <h6><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h6>
    <h6>Average rating: <?php $key="ratings_average";echo get_post_meta($post->ID, $key, true);?></h6>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.