Title: Show postviews
Last modified: September 29, 2023

---

# Show postviews

 *  Resolved [justgert](https://wordpress.org/support/users/justgert/)
 * (@justgert)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/show-postviews/)
 * First of all I love this plugin. Works like a charm. **Thank** you for this!
 * Then my question/feature request :
 * Maybe I overlooked things, but why is there no option (yet) to show the total
   hits or/and pageviews in the front so visitors can see how many times a blogpost
   is visited. For example a shortcode like this :
 * [koko-visitors] and/or [koko-pageviews]
 * These are already shown in the back-end. Would love the option to show these 
   in the front end as well. Under each blogpost like: This page has been visited[
   koko-visitors] times.
 * Would save some other plugins 🙂 Would love to hear about this you guys!
   Best
   regards,Gert
    -  This topic was modified 2 years, 8 months ago by [justgert](https://wordpress.org/support/users/justgert/).
      Reason: typo

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Support [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/show-postviews/#post-17087618)
 * You can use this shortcode:
 *     ```wp-block-code
       [koko_analytics_most_viewed_posts]
       ```
   
 * or with arguments:
 *     ```wp-block-code
       [koko_analytics_most_viewed_posts number=10 post_type='post' show_date=0 days=30]
       ```
   
 * Hope that helps. If you have any questions, please let me know!
 *  Thread Starter [justgert](https://wordpress.org/support/users/justgert/)
 * (@justgert)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/show-postviews/#post-17087632)
 * Hi Lap,
 * Thank you for your reply! 
   Yeah, I found those. But it is not what I meant.
 * What would be **really** useful is a shortcode with outputs the number of visits
   to a blogpost. This is seen in admin section, but would like to have it under
   each post with a shortcode.
 * For example : when I would include [koko-visitors] under each blogpost, the outcome
   of [koko-visitors] would be the number of visits, say : 12598
 * That way we could use it like : This post has been read [koko-visitors] times.
   
   This would then translate in : This post has been read 12598 times.
 * The information is already available in the back-end 🙂
   Advantages : No need 
   for another postview counter, and finally a reliable counter which would work
   with every caching system.
 * Best regards,
   Gert
    -  This reply was modified 2 years, 8 months ago by [justgert](https://wordpress.org/support/users/justgert/).
 *  Plugin Support [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/show-postviews/#post-17087661)
 * Ah I see what you mean. Someone has been working on something similar, showing
   the total for the whole site (still not per post). They submitted a pull request
   but it’s not added into Koko at this time: [https://github.com/ibericode/koko-analytics/pull/120](https://github.com/ibericode/koko-analytics/pull/120)
   
   We have requests for this on the feature request list though. Kind regards,
 *  Thread Starter [justgert](https://wordpress.org/support/users/justgert/)
 * (@justgert)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/show-postviews/#post-17087757)
 * I see, yes. Also found that post a while ago.
 * ” _showing the total for the whole site (still not per post)_” 
   Such a shame 
   since the total per post is already available in the admin section.
 * Could you pleas tell me which Koko file is used to list the totals per post in
   the back-end Lap?
 *  Plugin Support [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/show-postviews/#post-17093425)
 * You’re likely more interested in this example, if you are a coder you could go
   from there to make your own shortcode:
   [https://github.com/ibericode/koko-analytics/blob/master/src/class-shortcode-most-viewed-posts.php](https://github.com/ibericode/koko-analytics/blob/master/src/class-shortcode-most-viewed-posts.php)
   Note that our code is all there on Github, so if you are a developer feel free
   to browse trough it. However, here on the forum we just provide support for existing
   features in Koko.
 *  Thread Starter [justgert](https://wordpress.org/support/users/justgert/)
 * (@justgert)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/show-postviews/#post-17093563)
 * Hello Lap,
 * Thanks for your reply! If I would have been a coder, I would never asked in the
   first place haha. So no, but I will take a look at the code, maybe It will lead
   me to something.
 * You guy’s really need a pro version with some extra’s 🙂
 * Regards,
   Gert
 *  Thread Starter [justgert](https://wordpress.org/support/users/justgert/)
 * (@justgert)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/show-postviews/#post-17186966)
 * Hello Lap and Danny,
 * Great to see that there is a pro version now!
   Could my future request become 
   part of the pro version eventually, or .. ?
 * Best regards,
   Gert
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/show-postviews/#post-17187259)
 * [@justgert](https://wordpress.org/support/users/justgert/) Would it help if we
   would show the number of visitors and pageviews in the admin bar for logged-in
   users when viewing a post on your site?
 * If so, please vote on this feature suggestion here: [https://github.com/ibericode/koko-analytics/discussions/211](https://github.com/ibericode/koko-analytics/discussions/211)
   
   While you’re there, we have a bunch of [other feature suggestions there too](https://github.com/ibericode/koko-analytics/discussions?discussions_q=is%3Aopen+sort%3Atop+created%3A%3E%3D2022-11-09)
   that you can now vote on so that we know what you want us to work on next.
 *  Thread Starter [justgert](https://wordpress.org/support/users/justgert/)
 * (@justgert)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/show-postviews/#post-17187309)
 * Hello Danny,
 * Login in users don’t see admin bar nor have access to admin section.
   For my current
   post views I use another plugin, so under each (public) post it say’s : This 
   story has been read 45826 times
 * Since the /wp-admin/index.php?page=koko-analytics page allready showing the amount
   of visitors per post, maybe it would not be very difficult to show this in the
   front end under each post with a shortcode.
 * Ofcourse I am not a programmer and is it not easy at all. It would eliminate 
   another plugin 🙂
 * Thanks for your fast reply!
 *  Plugin Support [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/show-postviews/#post-17187514)
 * There is a feature request for this, you can follow it here: [https://github.com/ibericode/koko-analytics/discussions/233](https://github.com/ibericode/koko-analytics/discussions/233)
   
   Thanks!
 *  Thread Starter [justgert](https://wordpress.org/support/users/justgert/)
 * (@justgert)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/show-postviews/#post-17187523)
 * Cool! Thanks Lap!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Show postviews’ is closed to new replies.

 * ![](https://ps.w.org/koko-analytics/assets/icon.svg?rev=2980600)
 * [Koko Analytics - Privacy-Friendly WordPress Analytics](https://wordpress.org/plugins/koko-analytics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/koko-analytics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/koko-analytics/)
 * [Active Topics](https://wordpress.org/support/plugin/koko-analytics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/koko-analytics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/koko-analytics/reviews/)

## Tags

 * [postviews](https://wordpress.org/support/topic-tag/postviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [justgert](https://wordpress.org/support/users/justgert/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/show-postviews/#post-17187523)
 * Status: resolved