home page is_user_logged_in and current_user
-
howdy,
on the home page of my WordPress theme it will not pick up if the user is logged in or out. i tried the is_user_logged_in() function with a simple if statement and it says logged out. i tried to print the $current_user array and it’s showing WP_User Object ( [data] => [ID] => 0 [caps] => Array ( ) [cap_key] => [roles] => Array ( ) [allcaps] => Array ( ) [filter] => ) also, the admin bar is not showing on the home page. this is all only happening on the home page. there’s no errors.
any ideas?
thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘home page is_user_logged_in and current_user’ is closed to new replies.