WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Wrong count of posts between shortcode and dashboard (8 posts)

  1. NURB_2k
    Member
    Posted 2 years ago #

    I added a site with the shortcode to display the popular sites,
    but the count on this site is different to the dashboard one.

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Nurb,

    Are the shortcode settings the same ones as used in the Dashboard?

  3. NURB_2k
    Member
    Posted 2 years ago #

    Hi Héctor,

    when you install the plugin the dashboard shows you automatically the counts. So for this reason I don't know what short code is used in the dashboard, or don't know where to look for.

    Following I used this shortcodes to count on my popular posts site:

    [wpp stats_views=1 stats_comments=0 thumbnail_selection="usergenerated" thumbnail_width=60 thumbnail_height=60 limit=20 stats_date=1 pages=0 range="all" order_by="views" stats_author=1]

    You can have a look on my site http://www.nurb.de.
    in the center there is the "popular" button for popular posts.
    hit it and go for example for the for the first on.
    when you enter this site the count is different.

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    You can see the shortcodes in stats.php, around line 104 and on. The one for All-time is this one:

    [wpp range=all stats_views=1 order_by=views wpp_start=<ol> wpp_end=</ol>]

  5. NURB_2k
    Member
    Posted 2 years ago #

    So that is from the stats.php:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    And thats what I added now, but still wrong count (maybe i'm doing something wrong with the format):

    [wpp stats_views=1 stats_comments=0 thumbnail_selection="usergenerated" thumbnail_width=60 thumbnail_height=60 limit=20 stats_date=1 pages=0 range="all" order_by="views" stats_author=1 wpp_start=1 wpp_end=1]

    [Please post code snippets between backticks or use the code button.]

  6. NURB_2k
    Member
    Posted 2 years ago #

    [Code moderated as per the Forum Rules. Please use the pastebin]

  7. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Since I cannot access your Dashboard to see what is being outputted, can you post here what are the outputs, please? (screen captures would do, too).

    By the way, you're passing wrong values in wpp_start and wpp_end.

  8. NURB_2k
    Member
    Posted 2 years ago #

    Hi Héctor,

    last night I did a redesign of my site. So I'm not using the shortcodes anymore.
    Now i use a widget.

    I guess it would be a good idea to put up some shortcode examples on the wordpress plugin site. This way you can reduce your support work.

    Thank you very much for your help and time.

    King regards

    Guido

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic