Reset viewcount of all articles

This support request was posted in Flatbase by THORianer

Request ID #6333 In Progress
  • Dear Nicethemes,

    is it possible to reset the viewcount of all articles? We’ll launch our knowledgebase in the next 1-2 weeks and want to start with a view count of “0”.

    Would be great if you can provide a solution four us.

    Best regards,
    Nick

    Hello Nick,

    Thank you for writing. You can try running a function like this one (only once) in your site: https://gist.github.com/juanfraa/ebf1a4399b2dfa835d4d

    Best,
    Juan.

    Thanks therefore 🙂

    BUT, it only works for few of articles (about 20%)…

    Hello,

    Thank you for the follow up. Well it should be working for all of them. The script does a query over all articles. Perhaps you didn’t run the script for the time it needed, or perhaps you are using a cache plugin which is saving the old values.

    Best,
    Juan.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server