0
votes
1answer
249 views

Override private status - Enable users to read private posts

Hidden private posts for not logged in users The private posts are by default only visible when logged in. Override, show private posts for everyone Is there a clever way to override this? Make it ...
0
votes
2answers
314 views

Show a special message for private page?

If I set a page to private, can I have it show a message instead of a 404 page for public users?
0
votes
1answer
168 views

How to properly print a 404 error without redirecton? (i.e. keeping the current URL)

There are some pages on my BuddyPress install that I would like to hide by printing a 404 error. With the help of the following question: Redirect Restricted Page to 404 I came up with this code: ...
1
vote
1answer
725 views

How do I display content to users who are not logged in instead of 404 on Private custom posts?

I want to display a message like "You must be logged in to view this", with Private custom posts. Theoretically, I want to use something like this: if (is_user_logged_in()) { // Page code goes ...