WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. martin
    Member
    Posted 2 years ago #

    hello,

    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')): ?>
        <ul>
            <?php get_highest_rated_category(CATEGORY_ID); ?>
        </ul>
    <?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,
    mratin

    http://wordpress.org/extend/plugins/wp-postratings/

  2. lukelukeluke
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Hi

    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
    Member
    Posted 1 year ago #

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

  5. lukelukeluke
    Member
    Posted 1 year 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

Tags

No tags yet.