Title: wp login
Last modified: August 21, 2016

---

# wp login

 *  Resolved [kgh79](https://wordpress.org/support/users/kgh79/)
 * (@kgh79)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/)
 * Hi
    How can I redirect users who click on my website [http://www.iceportfolio.com](http://www.iceportfolio.com)
   straight to the wp login [http://www.iceportfolio.com/wp-login.php?](http://www.iceportfolio.com/wp-login.php?)
   TIA

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Kye](https://wordpress.org/support/users/gmax21/)
 * (@gmax21)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/#post-5147579)
 * Hey there,
 * So you want to redirect all logged out users to that page?
 * You don’t want them to be able read the content if logged out?
 * Not sure that’s a good thing to do, but if that’s what you need then maybe something
   like:
 *     ```
       if ( !is_user_logged_in() ) {
       	wp_redirect( home_url() . '/wp-login.php');
       	exit;
       }
       ```
   
 * You could hook that into the page:
 * [http://codex.wordpress.org/Function_Reference/add_action#Simple_Hook](http://codex.wordpress.org/Function_Reference/add_action#Simple_Hook)
   
   [http://codex.wordpress.org/Plugin_API/Action_Reference](http://codex.wordpress.org/Plugin_API/Action_Reference)
 * You may also find a plugin here that helps:
 * [https://wordpress.org/plugins/tags/redirect](https://wordpress.org/plugins/tags/redirect)
 * Hopefully that should get you in the right direction. Let me know how you go.
 *  Thread Starter [kgh79](https://wordpress.org/support/users/kgh79/)
 * (@kgh79)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/#post-5147581)
 * Hi
    Thanks for that Tim… what I am creating is a website that has around 140 
   users and then each user will have their own space… so all I need is the home
   page to be a log in page for that user… a separate issue I have is that I then
   need other users to have read only access the other spaces… I am a newbie WP 
   so bear with me!
 *  [Kye](https://wordpress.org/support/users/gmax21/)
 * (@gmax21)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/#post-5147584)
 * Hey there.
 * Then rather than redirecting you could just just create a login page for the 
   front of your site:
 * [http://codex.wordpress.org/Function_Reference/wp_login_form](http://codex.wordpress.org/Function_Reference/wp_login_form)
 * Or use a plugin:
 * [http://wordpress.org/plugins/search.php?q=login+form](http://wordpress.org/plugins/search.php?q=login+form)
 * WordPress Multisite wouldn’t let people edit other peoples websites. They would
   need to be an admin first. If you don’t want to give them a whole website in 
   a network install then maybe consider something like BuddyPress:
 * [http://buddypress.org/](http://buddypress.org/)
 * Hope this helps.
 * Take care.
 *  Thread Starter [kgh79](https://wordpress.org/support/users/kgh79/)
 * (@kgh79)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/#post-5147587)
 * Hi Tim
    thanks for the advice when I add plugin… it still shows my header menu
   and posts etc… all I want my home page to show is the username and password as
   per the wp-login.. the if code you sent previously – in which php would I insert
   it into? Thanks
 *  [Kye](https://wordpress.org/support/users/gmax21/)
 * (@gmax21)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/#post-5147613)
 * Hey there,
 * You would pop that into a hook and then into your functions.php file of the theme
   or a mini plugin which you’d have to make.
 * I just took another look and it seems there is a plugin doing this:
 * [https://wordpress.org/plugins/private-only/](https://wordpress.org/plugins/private-only/)
 * Take care.
 *  Thread Starter [kgh79](https://wordpress.org/support/users/kgh79/)
 * (@kgh79)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/#post-5147615)
 * I added into the functions file but didnt seem to work – I must be doing something
   wrong!!
    I also tried this plugin and couldnt make it work either think I am 
   a lost cause 🙁

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp login’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [kgh79](https://wordpress.org/support/users/kgh79/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/wp-login-10/#post-5147615)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
