Title: Login / profile &#8211; logout
Last modified: August 19, 2016

---

# Login / profile – logout

 *  [leonanthony](https://wordpress.org/support/users/leonanthony/)
 * (@leonanthony)
 * [16 years ago](https://wordpress.org/support/topic/code-loginprofile-logout/)
 * I’m working on a theme for our club (501st) and i’m looking for a code that will
   show “login” on the top of the home page when somebody visits the site. when 
   one of our members clicks on the link they should go to the WP login page, en
   after entering there user data, they should be redirected to the page they came
   from. Now there should be a link “profile” and an link “logout”
 * it’s a easy one bud i can’t get to it.
 * Greets,
 * Leon

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years ago](https://wordpress.org/support/topic/code-loginprofile-logout/#post-1514113)
 * [http://codex.wordpress.org/Function_Reference/wp_loginout](http://codex.wordpress.org/Function_Reference/wp_loginout)
 *  Thread Starter [leonanthony](https://wordpress.org/support/users/leonanthony/)
 * (@leonanthony)
 * [16 years ago](https://wordpress.org/support/topic/code-loginprofile-logout/#post-1514122)
 * thanks 🙂
 *  Thread Starter [leonanthony](https://wordpress.org/support/users/leonanthony/)
 * (@leonanthony)
 * [16 years ago](https://wordpress.org/support/topic/code-loginprofile-logout/#post-1514149)
 * Completely forget, how can i make a link to our forum thats only visible for 
   users that are logged in (in the same line).
 * So it will look like this: Hi “username”, profile – forum – logout
 * thanks.
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years ago](https://wordpress.org/support/topic/code-loginprofile-logout/#post-1514154)
 * Put something like this after the log-in/out code.
 *     ```
       <?php if ( is_user_logged_in() ) :  ?>
       <!-- your forum link html code goes here -->
       <?php endif; ?>
       ```
   

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

The topic ‘Login / profile – logout’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [Logout](https://wordpress.org/support/topic-tag/logout/)
 * [profile](https://wordpress.org/support/topic-tag/profile/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/code-loginprofile-logout/#post-1514154)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
