DamienRoche Posted August 30, 2008 Share Posted August 30, 2008 Hi guys, I am trying to fetch a username based on the frequent: if (is_user_logged_in()) But how do I know which user is logged in? basically, I want something like this: if (is_user_logged_in()){ $username = ; ////this is where I'm stuck echo "$username"; } Any help is greatly appreciated. Thanks. Link to comment https://forums.phpfreaks.com/topic/122016-help-with-simple-wordpress-fetch/ Share on other sites More sharing options...
Fadion Posted August 30, 2008 Share Posted August 30, 2008 Usually here we talk about php alone, not used in pre-made applications as that can make stuff a lot difficult. Each system has it's own way of handling stuff and wordpress isn't an exception. Maybe it uses sessions, cookies, or any other method which i'm not aware. You should read that on the wordpress documentation. Link to comment https://forums.phpfreaks.com/topic/122016-help-with-simple-wordpress-fetch/#findComment-629841 Share on other sites More sharing options...
DamienRoche Posted August 30, 2008 Author Share Posted August 30, 2008 Thanks for the input. I'm guessing you don't have experience with Wordpress then? Has anyone got any other advice? I would really appreciate a little help with this. I have searched through the documentation quite extensively but am yet to find something. Thanks. Link to comment https://forums.phpfreaks.com/topic/122016-help-with-simple-wordpress-fetch/#findComment-629875 Share on other sites More sharing options...
Fadion Posted August 30, 2008 Share Posted August 30, 2008 Actually i have no experience on wordpress, except installation and configuration. As I said, this board is not for pre-made applications, but pure css scripts. You should post these kind of questions in this board. Link to comment https://forums.phpfreaks.com/topic/122016-help-with-simple-wordpress-fetch/#findComment-629915 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.