Plugin Contributor
Lap
(@lapzor)
You can use this shortcode:
[koko_analytics_most_viewed_posts]
or with arguments:
[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!
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, 3 months ago by
justgert.
Plugin Contributor
Lap
(@lapzor)
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
We have requests for this on the feature request list though.
Kind regards,
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 Contributor
Lap
(@lapzor)
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
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.
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
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
@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
While you’re there, we have a bunch of other feature suggestions there too that you can now vote on so that we know what you want us to work on next.
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 Contributor
Lap
(@lapzor)
There is a feature request for this, you can follow it here: https://github.com/ibericode/koko-analytics/discussions/233
Thanks!