WordPress blog visible to logged in users only?
-
Hello All –
I have set up a WordPress blog on a website that requires users to login for access. The site itself is not WordPress, just the blog that is set up in its own sub-directory. Currently you can view the blog whether you are logged in or not by calling up the direct URL.
This is for the company I work for and I now have been asked to set up the blog so that it is only visible to users when they are logged into the main site. I have looked for a solution and so far haven’t found one. Is there a way for WordPress to tell if a user is logged into the main site and, if they are not, redirect them to the main login page if they try to call up the blog URL?
Also, do not want people to have to create accounts on the blog, just to be able to use their existing accounts from the main site to view the blog.
Thanks!
- The topic ‘WordPress blog visible to logged in users only?’ is closed to new replies.