WordPress.org

Forums

[resolved] [Plugin: bSuite] Wdiget not showing correct posts number (3 posts)

  1. DarkGhostHunter
    Member
    Posted 6 years ago #

    In my sidebar I have only the "bStats Posts" Widget. Configurtion is 10 posts, from last 7 days.

    No problem there, but when i look the site, the widget is showing 15 from that days. It seems that the "numbers" configuration is bypassed, and set for 15 always. When I set up 1 post and 1 day (today), shows more than one.

    Plzfix, i'm not a programmer.

  2. DarkGhostHunter
    Member
    Posted 6 years ago #

    Okey, i'm not but at least i could try. After half-fay of looking and figuring out, the widget function in bSuite.php is the problem:

    Search for (line 2356 if i'm right)

    $pop_posts = $this->pop_posts("limit=$number&days=$days");

    and repace the "limit" for "count". It will look like this:

    $pop_posts = $this->pop_posts("count=$number&days=$days");

    That's all, the widget will get the number limit correctly.

  3. Casey Bisson
    Member
    Posted 6 years ago #

    @DarkGhostHunter: Thanks for pointing out the bug, and double thanks for identifying the fix.

    I've updated the plugin (and fixed a similar error elsewhere).

Topic Closed

This topic has been closed to new replies.

About this Topic