Make article category online visible for some users
This support request was posted in Flatbase by MattWithAHat
- MattWithAHat April 15, 2021 at 1:16 pm
Hi!
I’m using the plugin “Ultimate Member” where I can set the visibility of each item (posts, pages, custom posts, etc.) for every user type. I have some articles that should only be visible to the admin and “managers”. For the most part, it works as expected. When someone else tries to access an article, they get a message that it is restricted.
The problem is, however, that on the main page all categories are listed, even those that can’t be seen by the particular user. If you log in with the user I provided, you can see “Search Analysis”. However, every category as well as the category itself is restricted and can’t be seen by that user. The category is even excluded from the WordPress post query for that user, but still he can see it on the main page. Is there a way to fix that?
Juanfra Aldasoro April 16, 2021 at 9:50 amHi,
Thank you for reaching out to us. I hope you’re doing well.
I can’t log in into your site with the access details you’ve provided. With regards to the plugin compatibility we’re using WordPress native functions to retrieve that information, like
get_categories
andget_posts
. The code can be found in the functionnicethemes_knowledgebase
inflatbase/includes/functions.php
. I would contact the membership plugin and ask why is that they’re visible regardless of the configuration you’ve used.Best,
Juan.
You must be logged in to reply to this topic.