Where do I find the code for page views?

Posted in: Newsmag
Post count: 3

Hello,

I recently purchased the NewsMag theme. I love it and so far it is the best WordPress theme I’ve used. My only problem is I have lost the page views for all my articles prior to installing it. I was wondering if someone could help me get those page views back and/or if you can tell me where exactly I find the code in the back end editor that calculates the page views.

Thanks in advance

Rick

Post count: 6535

Hi

Post views are stored in a field from database which for our theme is post_views_count: http://screencast.com/t/GcBHcpTF To get the views prior to Newsmag you need to identify in what filed stored them your previous theme then make a sum of them.

Thanks!

Post count: 3

Thanks Andrei,

Unfortunately, I still don’t understand how to make this change. Can you guys help me with this. Do you have a service in which you charge a little extra for minor fixes?

Rick

Post count: 6535

Hi

Unfortunately we can’t offer custom work for the moment., sorry. We would gladly made this for you but we’re a small team and we work very hard at development fixes and support for our customers. You can look for a developer from sites like https://studio.envato.com/ to help you with this task.

Thanks for your understanding!

Post count: 9544

Ricky..
I changed the little text element to ‘views’ in place of ‘post_views_count’ which fixed my issue with existing counter data. Just open the one file in a text editor the upload via ftp… Downside is you have to repeat fix each time updating theme. But good time to learn how to do this stuff. Also make backups of everything!

Post count: 3

Thanks Chris,

I am not sure if I will be able to figure this out but I will try.

Ricky

Post count: 9544

See tutorials online for how to use “FileZilla” to manage WordPress via FTP.

Really good skill to have 🙂

Basically, have a “local” copy of your entire site on your hard drive; both as a backup and as a “working” copy to make edits to. Best NOT using child theme and use “main” theme to ensure ease of future updates; just keep track of any changes to theme files.

I often make a separate folder for copies of files I have changed.

Edit files in textpad 5 (free), BBEdit, notepad on PC, simpletext (DO NOT USE WORD PROCESSOR!).

Make edits, upload via FTP, then check site on web; if you mess up, just upload the working file back again. Keep both FTP and browser windows open, and pretty soon you’ll be a wiz! 🙂

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