• Resolved Admiral

    (@behroooz)


    hello

    Thank you for your Free services ??

    I was using this function to show post cunt, but from yesterday, only the number 0 is displayed

    <?php if (function_exists(‘wpp_get_views’)) echo wpp_get_views( get_the_ID(), ‘all’ ); ?>

    The page I need help with: [log in to see the link]

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

    (@hcabrera)

    Hi @behroooz,

    What version of the plugin are you using at the moment?

    Thread Starter Admiral

    (@behroooz)

    5.3.1

    wp 5.7.1

    Plugin Author Hector Cabrera

    (@hcabrera)

    I tried reproducing this on my website but the function seems to be working normally for me.

    <?php
    echo '<p><small>This post has been viewed a total of ' . wpp_get_views(get_the_ID()) . ' times - using wpp_get_views(get_the_ID())<br />';
    echo 'This post has been viewed a total of ' . wpp_get_views(get_the_ID(), 'all') . ' times - using wpp_get_views(get_the_ID(), \'all\')<br />';
    echo 'This post has been viewed a total of ' . wpp_get_views(get_the_ID(), ['range' => 'all']) . ' times - using wpp_get_views(get_the_ID(), [\'range\' => \'all\'])</small></p>';
    ?>

    Any other thing I should try to reproduce the problem?

    Thread Starter Admiral

    (@behroooz)

    not working for me
    I had this problem before, and I changed something in the database, and boom! problem solved
    but I can not remember now what did I changed ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    Long shot but give this a try and let me know if it fixes the issue for you. If not then I’ll need more details in order to be able to help out.

    Thread Starter Admiral

    (@behroooz)

    Thank you
    with this solution problem solved

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Count viewer showing 0’ is closed to new replies.