WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Disable Pages from displaying (6 posts)

  1. dsjones
    Member
    Posted 1 year 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");?>

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Mladen Gradev
    Member
    Posted 1 year ago #

    Yes,
    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. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  5. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Mladen Gradev,

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

  6. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.