How to Solve If WP-PostViews Plugin Does Not Increase
Today I installed WP-PostViews plugin for my another website that supported by WordPress. After I activated this plugin from admin panel, then I added related code into single.php file as its documentation said. Afterwards, I saw that the counter did not increase. It always displayed zero value. After I saw the Post View Options page from admin panel -> Settings -> PostViews, there was a WordPress PostMetas there. It was called: “views”. Then I created a Custom Fields field from the Posts and Pages feature named: “views” with value = “1″.
Unfortunately, this counter still did not increase. Then after investigated the cause, I found that I had been using WP Super Cache plugin. It looked like that this WP Super Cache plugin caused this counter did not increase properly. Then, I changed the setting from WP Super Cache Manager page through admin panel -> Settings -> WP Super Cache.
All I have to do is:
- Enabled the Super Cache Compression setting.
- Checked the checlist box at: Single Posts (is_single) and Pages (is_page). Actually, it depends on which page you will display this PostViews counter.
- Save the setting changes above.
After that, then the PageViews counter have increased as good as we want. Hopefully this will be useful for those who face the same problem.
Print This Post
again doesn’t work
@Ozan
What do you mean doesn’t work? Could you please let us know more detail?