Support » Plugin: WordPress Popular Posts » Show views for current post, on single.php

  • Resolved dreamsoft

    (@dreamsoft)


    Hello
    I find it pretty useless to use another plugin for views, but this plugin doesn’t seem to be able to show the views for current post?
    like show the total views of current post on single.php

    used this code <?php wpp_get_mostpopular( ‘post_html=”{views}”‘ ); ?> but it shows 140 74 69 51 45 42 41 39 36 36
    not sure what are those, I just want to show the total views since forever.

    thank you

    https://wordpress.org/plugins/wordpress-popular-posts/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dreamsoft

    (@dreamsoft)

    well, you could, at least, confirm that there is no way to do this?

    Use <?php echo wpp_get_views($post->ID); ?>

    The tag you are using is to display the most popular posts!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thank you for helping out, coldpumpkin!

    Thread Starter dreamsoft

    (@dreamsoft)

    thanks, that seems to work. but why is it adding a view if I refresh the page? it keeps adding with every refresh. Isn’t this supposed to count unique hits?

    coldpumpkin

    (@coldpumpkin)

    dreamsoft apparently that’s how it’s working currently.

    Plugin Author Hector Cabrera

    (@hcabrera)

    thanks, that seems to work. but why is it adding a view if I refresh the page? it keeps adding with every refresh. Isn’t this supposed to count unique hits?

    As @coldpumpkin says, that’s how it works.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show views for current post, on single.php’ is closed to new replies.