0

The number of views is something I am very concerned about as it helps me understand how many people actually read the posts. I have bloggers working with me who may fake their article's popularity just by editing the "number of views" in the edit section of each article. How can I stop them from doing that?

I have added User Role Editor plugin for the same but I can't figure how to prevent author from changing post count.

Is there any other manner in which I can check the actual number and prevent the author from seeing/editing the same?

They are able to edit here:

enter image description here

  • How can they edit the number of views? Is it stored as a custom field? If so, consider prepending the meta key with underscore to hide it (might need some programming effort to adjust it) – birgire Nov 16 '16 at 10:52
  • I have edited my question answering your question. – Mana Nov 16 '16 at 10:55
  • 2
    Still we have no idea how it's stored and what Edit means. This is not part of the WordPress core. Most likely a 3rd party plugin used here, that are in general off topic. Please post the relevant code, thanks – birgire Nov 16 '16 at 10:57
  • Thank you. I looked for plugins and I found that that was actually a plugin that was installed and I made changes from the settings. Thanks. – Mana Nov 16 '16 at 11:02
0

This is not a part of WordPress core and it is a part of the plugin called "Post Views Counter".

To change the privileges only to the admin, go to:

  1. Setting
  2. In General , restrict the editing to only the admin. Check the box.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.