Title: Problem :(
Last modified: August 24, 2016

---

# Problem :(

 *  Resolved [rwtryb](https://wordpress.org/support/users/rwtryb/)
 * (@rwtryb)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-121/)
 *     ```
       <?php
           $args=array(
             'post_type' => 'post',
             'showposts' => 1,
           );
           $my_query = new WP_Query($args);
           if( $my_query->have_posts() ) {
   
             while ($my_query->have_posts()) : $my_query->the_post(); ?>
   
              <h2><a href="<?php the_permalink() ?>" title="Link do <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
               <?php the_post_thumbnail('thumbnail', array()); ?>
   
                	<p><?php the_excerpt(); ?></p>
   
                	<div class="zakup">
       <?php
       $value = get_field( "typaplikacji" );
       ?>
         <?php
       if( $value == "Darmowa" ) {
           echo'<div class="darmowa">';
           echo 'DARMOWA';
           echo'</div>';
       } else {
           echo'<div class="platna">';
           echo 'PŁATNA';
           echo'</div>';
       }
       ?>
       			 </div>
   
       <div class="ocena">
           <?php echo do_shortcode("[yasr_overall_rating] "); ?>
             </div>
   
              <?php
             endwhile;
           } //if ($my_query)
         wp_reset_query();  // Restore global post data stomped by the_post().
   
       ?>
       ```
   
 * Why: <?php echo do_shortcode(“[yasr_overall_rating] “); ?> don’t work?
 * [http://www.graphicupload.com/pic/ref=problem.png](http://www.graphicupload.com/pic/ref=problem.png)
 * [https://wordpress.org/plugins/yet-another-stars-rating/](https://wordpress.org/plugins/yet-another-stars-rating/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-121/#post-5992138)
 * 1) Does that post have a rating?
 * 2) On settings, did you enabled “Show “Overall Rating” in Archive Page?”
 *  Thread Starter [rwtryb](https://wordpress.org/support/users/rwtryb/)
 * (@rwtryb)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/problem-121/#post-5992144)
 * Thanks! Now I see stars.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem :(’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-stars-rating/assets/icon-256x256.png?rev=1525329)
 * [YASR - Yet Another Star Rating Plugin for WordPress](https://wordpress.org/plugins/yet-another-stars-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-stars-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-stars-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-stars-rating/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rwtryb](https://wordpress.org/support/users/rwtryb/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/problem-121/#post-5992144)
 * Status: resolved