Support » Plugin: Post Views for Jetpack » Displaying # of post views?

  • Resolved kosmicbird

    (@kosmicbird)


    I want to display the # of views on my post pages so I just downloaded Post Views for Jetpack. However the views are not displaying. I’m not sure if in the past I disabled something that allows it to show, or what. Not really sure why it’s not displaying for me!

    Can anyone offer some help, suggestions on what to look for to figure it out, etc? My users really want me to add this feature so I hope to be able to resolve this soon.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    Did you add a shortcode to one of your posts after installing the plugin, or add it to your theme like so:
    <?php echo do_shortcode(β€˜[jp_post_view]’); ?>

    If you don’t use the shortcode anywhere, you won’t notice any changes on your site.

    Thank you! Works like a charm now. Feeling a little dumb for not realizing I needed to add that to the file πŸ™‚

    How does the counter log views – is it done by IP address, username, or? Also is there a duration, and if so, what is the duration between the time it counts the same viewer as a “new” view?

    • This reply was modified 2 years, 10 months ago by kosmicbird.
    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic πŸš€

    Thank you! Works like a charm now. Feeling a little dumb for not realizing I needed to add that to the file πŸ™‚

    No worries! That’s my fault for not making it clearer in the readme. I’m actually counting on feedback from users like you to figure out how this plugin could be better. Right now, it’s all up to you whether a post includes a view count, but if everyone is interested in adding Post views before or after each one of the posts on their site, I’ll consider making that an option in the plugin.

    If you have any feedback for me after a few weeks of use, or right now, let me know!

    How does the counter log views

    The counter relies on Jetpack Stats, so it reflects the stats recorded by Jetpack for each post.

    Each view is a unique view; if the same person visits multiple posts and pages on your site, each page they visit is a new view. If they were to refresh the page they’re on, that would also count as a new view.

    I hope this clarifies things a bit.

    Well, it’s my fault for not actually reading the readme, haha!

    Just so you know, on my site, users can make their own posts and it will show up in a page feed (similar to reddit style). I added the code to my child theme’s files to display the view count at the top of every post page after the post title/post meta. I am also using it on the page that displays every user’s post on a feed (it’s a category page). I would think that the majority of users who would want to display post views would opt to show it on all posts (just my opinion, not necessarily fact πŸ™‚ That is certainly how I am using it, at least.

    I do have some additional feedback for you, but I will start another thread for it as it’s related to a different issue.

    • This reply was modified 2 years, 10 months ago by kosmicbird.
    • This reply was modified 2 years, 10 months ago by kosmicbird.
    • This reply was modified 2 years, 10 months ago by kosmicbird.
    • This reply was modified 2 years, 10 months ago by kosmicbird.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Displaying # of post views?’ is closed to new replies.