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

    (@hcabrera)

    Hi Nurb,

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

    Thread Starter NURB_2k

    (@nurb_2k)

    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 https://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.

    Plugin Author Hector Cabrera

    (@hcabrera)

    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>]

    Thread Starter NURB_2k

    (@nurb_2k)

    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.]

    Thread Starter NURB_2k

    (@nurb_2k)

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

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

    Thread Starter NURB_2k

    (@nurb_2k)

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WordPress Popular Posts] Wrong count of posts between shortcode and dashboard’ is closed to new replies.