Hi there, I'm trying to find a way to show the total post views in the backend of the site for each story. I don't want them on the articles as it sets them all to 0 when I do that and some are locked into the paywall so have fewer views. I want to be able to see the post views for each story in the backend in a column on the posts page. Or at least in the post views panel we see if we un-tick: Hide Post Views. I'm sure I'm not the only one who would find this very helpful.
Can I just check that code is correct? It's definitely showing the column with all views, weekly and monthly in the posts page (excellent) but all seem to be stuck on 0. Even though we've had views. Not sure the counter is drawing correctly.
Thank you, yes that works great now. Really appreciate your help. I don't want the view showing always because we lockdown some stories to encourage more subscribers, but then their view stats are lower.
Really happy with the way this is working but wondered if there was a simple way to restrict the post views data to administrators only? Currently my contributors can see it also. Ideally I'd like them not to be able to.
Thank you, that is superb. First class support as always.
One more question I have is why do my social icons show up as corrupted in my author bios. Facebook, Instagram and LinkedIn are all showing up as a jumble of four letters instead.
Hi there,
I'm trying to find a way to show the total post views in the backend of the site for each story. I don't want them on the articles as it sets them all to 0 when I do that and some are locked into the paywall so have fewer views. I want to be able to see the post views for each story in the backend in a column on the posts page. Or at least in the post views panel we see if we un-tick: Hide Post Views.
I'm sure I'm not the only one who would find this very helpful.
Thanks Derek
Hi,
Please install the Code Snippet plugin, then create a new snippet with the following content:
Regards,
PenciDesign.
Can I just check that code is correct? It's definitely showing the column with all views, weekly and monthly in the posts page (excellent) but all seem to be stuck on 0. Even though we've had views. Not sure the counter is drawing correctly.
Derek
Hi,
If the previous doesn't show post view, please try to replace it with this code:
Regards,
PenciDesign.
That still doesn't seem to be showing views – just 0s across the board even when I have clicked through certain posts. Strange.
Hi,
Please send me your site login credential in a PRIVATE reply. I'll need to log in & check your config.
Regards,
PenciDesign.
Hi,
The post view function doesn't work because you've disabled it on the Customize options.
I've enabled it by going to Appearance → Customize → General: Enable ajax Post View Count.
If you don't want to show the post view on the front-end, please go to Appearance → Customize → Additional CSS, add the following custom CSS code:
Regards,
PenciDesign.
Thank you, yes that works great now. Really appreciate your help. I don't want the view showing always because we lockdown some stories to encourage more subscribers, but then their view stats are lower.
Thank you. Great support!
Really happy with the way this is working but wondered if there was a simple way to restrict the post views data to administrators only? Currently my contributors can see it also. Ideally I'd like them not to be able to.
Hi,
Please modify the PHP code like this:
Regards,
PenciDesign.
Thank you, that is superb. First class support as always.
One more question I have is why do my social icons show up as corrupted in my author bios. Facebook, Instagram and LinkedIn are all showing up as a jumble of four letters instead.
Hi,
Please go to Appearance → Customize → Additional CSS then add the following custom CSS code:
Clear your site & browser cache then check again.Regards,
PenciDesign.
Boom! That's fixed it, thank you so much yet again.
Derek