Lost view count during blog migration

Posted in: Newspaper
Post count: 31

Hi

Since I migrated from Blogger to WordPress I lost the view count on my posts – can you recommend a way to override the post view count per post in the DB or something like that ?

(I saw the below link and I am not sure it’s the way to go, any way – I’d prefer a method that would work across all wordpress themes in case I want to switch to another theme in the future or something like that…)
https://forum.tagdiv.com/wp-postviews-post-view-counter-alternative-for-w3-total-cache/

Post count: 854

hi,
what you found is a plugin that you can use to store your own post counts and not let wordpress handles this part.

I think wordpress keeps those counts in wp_postmeta table in the database,as an serilizes php array ( http://screencast.com/t/WMZqNm6EQ2) , wordpress has API functionality that retrieve this info. probably you can increase the counts by creating a custom php script that can take each post from the wp_post table, get the serialized array, modify what you want, then put the array back in the wp_postmeta table. probably will work.

Thanks for you message.
Radu A.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.