Home › Forums › Other › WordPress hide categories from logged out users › Re: WordPress hide categories from logged out users
May 7, 2013 at 12:23 pm #134362
You shouldn’t really need a plugin for this. You just need to use this:
Inside your `is_user_logged_in` conditional, you can run the loop for your dealer blogs. Just have to make sure that you also use it on the actual single pages so that logged out people can’t see the single posts, either.
So you’d do something like:
echo ‘Sorry, you need to be logged in to view this post. Log in.‘;