share icon not displaying for all the posts
-
i am using the following code to dis play icons . But icons are only displayed for the first posts and not for the rest
`<?php $paged= (get_query_var(‘paged’ )) ? get_query_var(‘paged’):1; ?>
<?php $args = array( ‘post_type’=>’events’,
‘posts_per_page’ => 2 ,
‘paged’=>$paged
);
$loop = new WP_Query( $args );
if($loop->have_posts()):while ( $loop->have_posts() ) : $loop->the_post();
$count=0;
?>
<div class=”row event-list my-events <?php echo $type[0]->name; ?> “>
<div class=”col-lg-9 col-md-9 col-sm-8 col-xs-12 paddingdel-l”>
<h5><?php the_title( ); ?></h5>
<div class=”row”>
<div class=”co-lg-5 col-md-5 col-sm-5 col-xs-6 event-list-right”>
<div class=”col-lg-2 col-md-2 col-sm-2 col-xs-2 paddingdel-l pad0″>
<img src=”<?php echo IMAGES; ?>/share.png” class=”img-responsive” alt=”” />
</div>
<div class=”col-lg-8 col-md-8 col-sm-8 col-xs-8 social”>
<?php get_sidebar(‘share’); ?>
</div>
</div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>`get_sidebar(‘share’) is the widget for sharing
- The topic ‘share icon not displaying for all the posts’ is closed to new replies.