Hi
I wasn’t very clear at my first questions. Let say if I have protected a hole category. When user is not logged in and it will open that category it will show a list of posts with the message: please log in to see this… repeatedly on every post excerpt.
So instead of this, in my project, I think is more professional to display just one message: you can’t see posts from this category because you aren’t logged in.
My question is if it is a function to test if a category is protected to that user, and to use in my theme-category.php. And if it is I can display one message (you can’t see posts from this category because you aren’t logged in…) and if it isn’t I can show the posts in normal way.
Thank you for your quick feedback and support.