How copy Old view counts to plugin’s new view column in Database ?
-
Hello dear Developers,
First of all thanks so much for developing this little very very clever count plugin!
It is fast, reliable, accurate and simply awesome !
Here’s my question:
Formerly I was using my WP theme’s post view counter.
But as it was a php counter, it did not work well with my caching plugin wp-rocket.
Therefore I have started to use Post Views Counter and I am very happy with it.
The only problem is that now that I have a new counter, all my posts look like they have 0 views :/ I need to import my old views to overwrite the plugin’s 0 views…So I have checked my database, the views are located in “wp12_postmeta”.
And I have seen that the column of old counts is called “view_count”.
The plugin’s new counter’s column is called “post-views-count” I guess.
How can I copy all the post’s old view count amounts to the new one?
So that the counter will not start from 0 but it will start from the older view count.
I think I must execute a mysql query function but I really don’t know much about those things. I am scared to try also if ever it breaks something :/
If you could help and show me the way to do this I’ll be really glad!
Thanks a lot for everything. It means a lot, really.
- The topic ‘How copy Old view counts to plugin’s new view column in Database ?’ is closed to new replies.