Title: Widget &#8211; AT Tabs
Last modified: August 21, 2016

---

# Widget – AT Tabs

 *  [Jenpachi](https://wordpress.org/support/users/jenpachi/)
 * (@jenpachi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/widget-at-tabs/)
 * Any options to choose how to display popular post by most views from different
   period of times as well as choosing the number of popular post to display?
 * Thank,
 * btw – awesome theme

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

 *  [dperel15](https://wordpress.org/support/users/dperel15/)
 * (@dperel15)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/widget-at-tabs/#post-4337901)
 * check out line 99 onward of “widget-tabs.php” file, lines go:
    ` <div class=”
   tab-pane” id=”widget-tab-latest”>
    -  <?php $latest = new WP_Query(‘orderby=post_date&order=DESC&ignore_sticky_posts
      =1&posts_per_page=’ . $tabs_post_count );
       while ( $latest -> have_posts()):
      $latest -> the_post(); ?> <li class=”clearfix”> <?php if ( has_post_thumbnail()){?
      > <div class=”widget-entry-thumbnail”> ” title=”<?php the_title_attribute();?
      >”><?php the_post_thumbnail( ‘thumb-small’, array( ‘title’ => get_the_title()));?
      > </div>’
    - i’m no expert or developer but i think if you play around with it you can 
      figure it out.
 *  Thread Starter [Jenpachi](https://wordpress.org/support/users/jenpachi/)
 * (@jenpachi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/widget-at-tabs/#post-4338026)
 * Im no developer so these coding means very little to me however it seems the 
   lines I should be looking at are between 73-82:
 *     ```
       <div class="widget-tab-content">
       			<div class="tab-pane active" id="widget-tab-popular">
   
       <ul>
       				<?php $popular = new WP_Query('orderby=comment_count&ignore_sticky_posts=1&posts_per_page=' . $tabs_post_count );
       					while ($popular->have_posts()) : $popular->the_post(); ?>
       					<li class="clearfix">
       						<?php if ( has_post_thumbnail() ) { ?>
       						<div class="widget-entry-thumbnail">
       							<a>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'thumb-small', array( 'title' => get_the_title() ) ); ?></a>
       						</div>
       ```
   
 * any advice would be appreciated 🙂
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been permanently damaged by the forum’s
   parser.]_

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

The topic ‘Widget – AT Tabs’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hiero/1.8.4/screenshot.png)
 * Hiero
 * [Support Threads](https://wordpress.org/support/theme/hiero/)
 * [Active Topics](https://wordpress.org/support/theme/hiero/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hiero/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hiero/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jenpachi](https://wordpress.org/support/users/jenpachi/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/widget-at-tabs/#post-4338026)
 * Status: not resolved