Post Views Count Reset

Posted in: Newspaper
Post count: 170

My post view count seems to have reset to zero either after the recent Newspaper Theme Update or on changing from WP Autoptimize cache plugin to WP Supercache.

Is there a way I can recover the post view counts that have been lost?

Thanks Derek

Post count: 35449

Hi,

Once that the view were set to 0 you can set theme back only if you have a database backup or if you set the view manual -> https://www.screencast.com/t/QrLJhZTtqAR or you can set the view count value for all the posts at once would be possible. For example using this function – https://pastebin.com/pKcWYFUt
The value can be changed, I set it to 1000. Enter it in the theme functions file. Refresh a post page and check if the views were updated. Then remove the function and the view should increase from the set value.

Thank you!

Post count: 170

Hi,

This is far from a satisfactory solution. Retaining view counts is essential if you run
a blog with many authors. My guess is the majority of blog owners have many authors nowadays and it is essential to retain views so that you can see how popular their posts are.

I think that this issue is so important I would like you to fix this problem for me as a matter of urgency and explain how when updating your theme I can stop the same thing happening again.

Thank you.

Derek

Post count: 35449

Hi,

The view count are set in database therefore the theme update will not affect it, because the theme update will change only the theme files, will not interfere with database, but if you are using some plugins or codes that access the view counter or is in conflict with it, then is possible that the view count to be rest, therefore the only solution to recover the views is to use a backup for database.

Thank you for your understanding!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.