WordPress Popular Posts
[Plugin: WordPress Popular Posts] Disable Pages from displaying (6 posts)

  1. dsjones
    Posted 3 years ago #

    I am trying to stop pages from displaying within my popular posts.
    I have included the shortcode that I have in my sidebar but pages are still showing up.
    Any help would be appreciated.

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("pages=0&range=monthly&stats_comments=0&order_by=views");?>


  2. Mladen Gradev
    Posted 3 years ago #

    The situation is same with me. When i update the plugin to 2.3.2, the widget is displaying only pages, even if I exclude them with the post type code. I like the option for removing the .css in new version, but this page display problem is keeping me away from 2.3.2

  3. Hector Cabrera
    Plugin Author

    Posted 3 years ago #

    Hi guys,

    The pages parameter has been deprecated since version 2.3.0. Use the post_type parameter instead (eg. post_type=post).

  4. Mladen Gradev
    Posted 3 years ago #

    Hi Hector,
    I have Post type(s):post, but there are pages showing in the widget. Something is wrong.

  5. Hector Cabrera
    Plugin Author

    Posted 3 years ago #

    Hi Mladen Gradev,

    Will check it out as soon as I get some free time.

  6. Hector Cabrera
    Plugin Author

    Posted 3 years ago #

    Hey guys,

    Just checked this in both the widget and the template tag and can't seem to be able to reproduce the problem. Pages are being excluded just fine. This is the code I used for the template tag:

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("header=Template&limit=5&range=monthly&order_by=views&post_type=post"); ?>

    It could also be that I'm using a development version of the plugin which includes a few updates, though, but I'm pretty sure I didn't modify anything related to this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.