Support » Plugin: WordPress Popular Posts » Remove Pages from Popular Posts Listing

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

    (@hcabrera)

    Hi there,

    That solution does not work with the most recent versions of the plugin. To exclude pages, simply use the post_type parameter:

    <?php
    if (function_exists('wpp_get_mostpopular')) {
      wpp_get_mostpopular("range=monthly&order_by=views&stats_comments=0&limit=10&post_type=post");
    }
    ?>

    Hi,

    Thank you for your instant response. This fixed my issue.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Pages from Popular Posts Listing’ is closed to new replies.