WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] Different views count (8 posts)

  1. botakedan
    Member
    Posted 1 year ago #

    Hi there,

    I put on single.php
    <?php echo wpp_get_views( get_the_ID() ); ?> on single.php

    and on the sidebar.php
    <?php wpp_get_mostpopular("range=weekly&limit=15&order_by=views&stats_views=1&stats_comments=0&wpp_start=' '&wpp_end=' '&"); ?>

    the views count is different from its post and that shown at the sidebar.

    than i figure it out, that its error only at the post that older more than a week which it still shown on the list.

    did i miss some thing?
    thank you
    http://www.nuga.co/nuga-travel/pesona-tropis-belize-dan-the-great-blue-hole.html

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    From the Installation section:

    wpp_get_views()

    The wpp_get_views template tag retrieves the total views count of a single post.

  3. botakedan
    Member
    Posted 1 year ago #

    <?php wpp_get_mostpopular("range=weekly&limit=15&order_by=views&stats_views=1&stats_comments=0&wpp_start=' '&wpp_end=' '&"); ?>

    so... the range=weekly mean show popular post views count of the week even the posting is 10 day old

    i thought range=weekly is show the popular post views count for posting in this week.

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    With the options you set, the function will list the most viewed posts from the past 7 days - no matter when they were published.

  5. botakedan
    Member
    Posted 1 year ago #

    so... how to show only this week posts published that shown ?

  6. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, plugin doesn't work that way.

    With the options you set, the function will list the most viewed posts from the past 7 days - no matter when they were published.

  7. botakedan
    Member
    Posted 1 year ago #

    or may be you can add more option to filter posting/published post by day

    thank you

  8. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    The original question (different views count) has been answered. Why did you mark this as unresolved again? Please, if you have a different question or topic that you would like to discuss then open a new ticket for that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic