• Resolved rwtryb

    (@rwtryb)


    <?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?

    https://www.graphicupload.com/pic/ref=problem.png

    https://www.ads-software.com/plugins/yet-another-stars-rating/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem :(’ is closed to new replies.