Title: [Plugin: WordPress Popular Posts] Remove stats from template function
Last modified: August 20, 2016

---

# [Plugin: WordPress Popular Posts] Remove stats from template function

 *  Resolved [geoff67](https://wordpress.org/support/users/geoff67/)
 * (@geoff67)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-stats-from-template-function/)
 * I’m having difficulty removing the stats when using the function in a template(
   not shortcode, not widget).
 * Everything looks correct to me:
 *     ```
       <?php
       $popular = array(
       	'limit'=>'4',
       	'range'=>'day',
       	'order_by'=>'views',
       	'pages'=>false,
       //	'stats_tag'=>array('comment_count'=>false),
       	'stats_comments' => false,
       //	'do_pattern'=>true
       );
       if(function_exists('wpp_get_mostpopular')):
       ?>
       	<aside id="trending-now">
       		<p class="loop-category">Trending Now</p>
       		<?php wpp_get_mostpopular($popular); print_r($popular); ?>
       	</aside>
       <?php endif; ?>
       ```
   
 * [http://wordpress.org/extend/plugins/wordpress-popular-posts/](http://wordpress.org/extend/plugins/wordpress-popular-posts/)

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-stats-from-template-function/#post-2800773)
 * Hi geoff,
 * Are you using the development version or the last stable (2.2.1)?
 *  Thread Starter [geoff67](https://wordpress.org/support/users/geoff67/)
 * (@geoff67)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-stats-from-template-function/#post-2800792)
 * Stable 2.2.1
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-stats-from-template-function/#post-2800812)
 * The 2.2.1 version (and earlier) only takes a string as parameter. Try this:
 * `wpp_get_mostpopular('limit=4&range=daily&order_by=views&pages=0&stats_comments
   =0');`
 * That should work.
 *  Thread Starter [geoff67](https://wordpress.org/support/users/geoff67/)
 * (@geoff67)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-stats-from-template-function/#post-2800823)
 * Ahh. Thanks for the quick replies.

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

The topic ‘[Plugin: WordPress Popular Posts] Remove stats from template function’
is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [Stats](https://wordpress.org/support/topic-tag/stats/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 4 replies
 * 2 participants
 * Last reply from: [geoff67](https://wordpress.org/support/users/geoff67/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-remove-stats-from-template-function/#post-2800823)
 * Status: resolved