Trying my luck once more with more smarter and awesome peeps =D
In my last question the issue was regarding getting wordpress user ID, which worked perfectly after someone steered me in the right direction.
Now I'm trying to help my friend achieve this with the same code but she doesn't get the user id no matter what we try.
The php code
require ('../wp-blog-header.php'); global $current_user; get_currentuserinfo(); $printID = $current_user->ID; echo $printID;
This gives me the ID of the user who is logged in.
I tried using the same code on her site, she's got a subfolder but that should be fine right?
require ('../Wordpress/wp-blog-header.php'); global $current_user; get_currentuserinfo(); $printID = $current_user->ID; echo $printID;
This prints out "0", doesn't matter which user that is logged in, still zero :(
Anyone got some tips? :D