Suppose you have a landing page you are directing users to, and users can login on that page, then be redirected to an articles page. What happens if the user is already logged in and they hit the landing page? Here is a process that will help smooth out the user experience. Continue Reading →
is_user_logged_in
Creating menus based on login status
In this example, I will show you how to display a different menu for users based on their login status for the WordPress TwentyTen theme. This process can be adapted to any theme (and using the same principles, could be adapted to use anywhere on your WP site).
Note: There is an alternate (and easier) method of doing this posted here. That post displays the method currently used on this site.
Show optional form fields only on user update
Suppose you have some additional form fields that are not required for registration and you don’t want to show those as part of the registration process; but you would like them to be included when a user updates their registration info. Here is an elegant way of doing that without resorting so hiding the fields with CSS. Continue Reading →