HIDE View Count Backend Post-Page

Posted in: Newsmag
Post count: 9

Hi there,

after upgrading to 2.3.5 you are showing the view count of every post in the post-overview! We don’t want to show that information to everyone there! How can I switch this off for everyone logged in the backend (not only me using the toggle view on/off).

Have a nice day
cheers
Pat

Post count: 9544

Theme has always shown the views in the admin panel for WordPress when looking at the list of posts, when the counter is turned on from theme panel. Since version 1.0.

There is a hook to disable showing the view counts in the admin panel, but leave the counters visible on the actual posts, but I don’t recall what it is. You could search if you want, and/or wait for TagDiv to reply.

Just heads up it’s “normal” to see the views, and always has been, in the WordPress panel. You can “hide visibility” from the visibility toggle, and some user role plugins allow you to hide that from the plugin that sets what is visible per role (e.g., admin = yes, editor = no).

Post count: 6535

Hi @PaTrocK

Please provide more specific details about waht you’re trying to do so I can inspect this and get back to you with a more accurate answer.

Thanks!

Post count: 9

Thanks for the quick reply chris and andrei, first of all, I have updatet from 2.2 Newsmag to 2.3.5 newsmag. I have just reverted, to make sure I am not nuts ^^ If so, please excuse me, as it was a long week for me 🙂

Well, what I am trying to say is, that on version 2.2 when I go -> Posts -> All Posts with the list of all my posts 🙂 I see “title”, “Author”, “Catagory”, “Tag” and so on. There are NO views of the specific post in a column. So far so good. When I switch to newsmag version 2.3.5 there is appearing a column with the total views of the post.

So maybe it is my fault, I am not saying, I am a 100% sure, but when I try to investigate that column in my google chrome it is saying: td_post_views in class: manage-column column-td_post_views, since “td” is the kind of shortage u are using in the theme I figured, it is a feature that was implemented between version 2.2 and 2.3.5.

So I came straight here to ask, where and how I am deactivating this, since I dont want to show the views on my “all posts” page. If I am totally wrong that it has something to do with the theme, I am sorry for bothering, but maybe you can point my to the right direction.

To make sure I am a 100% clear now (sry for my english) I have uploaded a screenshot

Screenshot

  • This reply was modified 10 years by PaTrocK.
Post count: 6535

Hi

Indeed the post views column from back-end it’s added by the theme ant to remove it you need to edit the td_wp_booster_functions.php and comment these lines http://screencast.com/t/5mzXrxuCa8http://screencast.com/t/FoMzn2rMvS01

Thanks!

Post count: 9

Worked, perfect. Thank you very much. I actually loved to see these views there, but, I would have wanted more freedom to decide who sees it. I use the plugin “user role editor” but I didn’t find anything there to change the permission to see that column you added.

So what chris wrote about the plugins that can change this, that would be interesting, if you know a solution to decide that only admins see your column. Maybe you can add a permission for this feature in one of the next updates, so we can decide who gets to show this column in the back-end?

Thanks for the help though 😉

Post count: 6535

Hi

We certainly plan to extend the theme flexibility in the future updates. I’ve added your suggestion on our list and when the time comes our developers will consider it. This may take some time because we have a long implementation list and we take them one by one. We also must pick carefully what features will be implemented as the user always must get what is best from us.

Meanwhile you can use current_user_can() function in td_page_views.php to keep the views column only for users with some specific permissions: http://screencast.com/t/sHZMdOAnXy Note that if you decide to use this method the code commented in previous example must be de-commented now.

Thanks for your suggestion, have a nice day.

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