Support » Plugin: Rate my Post - WP Post Rating » Custom Query [ratemypost-result] or “show ratings on archive pages” not working

  • Resolved wpnh

    (@wpnh)


    Hello.
    i want to simply display the results of the ratings in my custom wp query on a custom post type archive.

             $args_factsheets = array(
                        'post_type' => 'downloads',
                        'post_status' => 'publish',
                        'posts_per_page' => -1,
                        'tag' => 'guides'
                );
    
                $the_query = new WP_Query( $args_factsheets ); ?>
    
        		  <?php if ( have_posts() ) : ?>
    <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    
    // there is much more, but this should be the interesting part i guess
    <h4><a href="<?php the_permalink() ?>"><?php echo the_title();?></a></h4>
    
                        <?php endwhile; ?>
               
                      <?php	endif; ?> 
    

    How can i get the result stars?
    With the normal query it works, but i need some more queries.

    Thank you. NH

    • This topic was modified 1 month, 2 weeks ago by wpnh.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.