• Resolved geoff67

    (@geoff67)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi geoff,

    Are you using the development version or the last stable (2.2.1)?

    Thread Starter geoff67

    (@geoff67)

    Stable 2.2.1

    Plugin Author Hector Cabrera

    (@hcabrera)

    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

    (@geoff67)

    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.