• Resolved dess81

    (@dess81)


    I want to create the list of post from 1 category with rating for every post, but raring works only for the fist post.

    Example:
    Title 1 – Author 1 – Rating 1
    Title 2 – Author 2 – Rating 2
    Title 3 – Author 3 – Rating 3

    I use code:
    <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>

    It seems like it can be used only 1 time in:

    <?php $top_query = new WP_Query(‘showposts=1113&cat=86&offset=0&order=ASC&sort=date’); ?>

    <?php endwhile; ?>

    Maybe you can help me to solve this problem

    https://wordpress.org/plugins/wp-postratings/

Viewing 1 replies (of 1 total)
  • Plugin Author Lester Chan

    (@gamerz)

    You can try

    <?php if(function_exists('the_ratings')) { the_ratings( 'div', get_the_ID() ); } ?>

    But you can only have one of the same post on the same page due to technical limitation.

    If you have Title 1 in the page, you can’t have Title 1 anywhere else on the same page.

Viewing 1 replies (of 1 total)

The topic ‘Creating the post list with rating’ is closed to new replies.