Im creating a loop where it pulls info about a users activity. the code is on the author page and what i want to to is get the current author ID, so based on what author page th
Try this
global $wp_query; $thePostID = $wp_query->post->ID; $postdata = get_postdata($thePostID); $authorID = $postdata['Author ID'];
or something like this
post_author; ?>