Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="right-side col-sm-4 ssdsds">
- <div class="popular-group">
- <div class="rightside-title-group">
- <div class="rightside-icon"> <img src="<?php bloginfo('template_url'); ?>/images/icon-popular.png" alt="" /> </div>
- <div class="rightside-title"><h2>Popular</h2></div>
- </div><!--./rightside-title-group -->
- <?php
- query_posts('posts_per_page=4&meta_key=post_views_count&orderby=meta_value_num&order=DESC');
- if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="popular-box">
- <!--<div class="popular-img col-sm-4 col-xs-4"> <?php //the_post_thumbnail(array(300,300)); ?> </div>-->
- <div class="popular-content col-sm-12 col-xs-12">
- <div class="popular-title"><a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a> </div>
- <div class="popular-text"> <?php
- $excerpt = get_the_excerpt();
- echo string_limit_words($excerpt,15);
- ?><a href="<?php the_permalink(); ?>"> more...</a> </div>
- </div>
- </div><!--./popular-box -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement