NiceThemesReset viewcount of all articles – NiceThemes http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/feed/ Mon, 21 Apr 2025 14:19:37 +0000 http://bbpress.org/?v=2.5.12-6148 en-US http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6333 <![CDATA[Reset viewcount of all articles]]> http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6333 Mon, 21 Sep 2015 07:18:21 +0000 THORianer 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

]]>
http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6340 <![CDATA[Reply To: Reset viewcount of all articles]]> http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6340 Mon, 21 Sep 2015 14:16:25 +0000 Juanfra Aldasoro 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.

]]>
http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6346 <![CDATA[Reply To: Reset viewcount of all articles]]> http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6346 Tue, 22 Sep 2015 07:09:54 +0000 THORianer Thanks therefore 🙂

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

]]>
http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6347 <![CDATA[Reply To: Reset viewcount of all articles]]> http://nicethemeswp.com/forums/topic/reset-viewcount-of-all-articles/#post-6347 Tue, 22 Sep 2015 13:43:36 +0000 Juanfra Aldasoro 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.

]]>