Forums

Displaying Specific Posts (5 posts)

  1. sirhank
    Member
    Posted 9 months ago #

    On my site here: http://www.bestgolfswingtips.co.uk/ I would like to show the latest posts by showing thelatest post in the 'Gold Rating' container, 2nd latest post in the 'Silver Rating' container and 3rd latest post in the 'Bronze Rating' container

    How or what is the best way to do this?

    Thanks for your help

  2. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

  3. sirhank
    Member
    Posted 9 months ago #

    Thanks for your reply esmi

    I am actually using the GD Stars plugin and the code I have for the Silver Ranking box (text in a widget) is:

    <?php
    wp_gdsr_render_rating_results(array('template_id' => 51, 'rows' => 1, 'select' => 'post', 'offset' => 2, 'category' => 5, 'hide_empty' => false, 'min_votes' => 0, 'min_count' => 0, 'excerpt_words' => 25, 'image_from' => 'content', 'rating_stars' => 'crystal', 'rating_size' => '24', 'review_size' => '24', 'rating_thumb_size' => '24'));
    ?>

    As you can see I have added:

    'offset' => 2,

    but it has not made any difference :(

  4. tasty.donuts
    Member
    Posted 9 months ago #

  5. sirhank
    Member
    Posted 9 months ago #

    Thanks for the link tasty.donuts

    Had a quick try with it and, as expected, it doesnt pick up the star ratings ...

    This plugin would be even better if after I have set the widget options I could see the code ... I often have problems getting the syntax right for the code as, as you will know, just one ',' in the wrong place or left out will cause the code not to run ....

    Will keep trying with both the query-posts and the get_posts ...

Reply

You must log in to post.

About this Topic