I want to get all posts by certain author id (current user). Later, I want to pick the first post made by this user (ASC). I guess I do not use the right arguments in get_posts, am I? $current_user_posts always contains an Array with all blog posts in multiple different WP_Post Objects.
global $current_user; get_currentuserinfo(); $args = array( 'author' => $current_user->ID, // I could also use $user_ID, right? 'orderby' => 'post_date', 'order' => 'ASC' ); // get his posts 'ASC' $current_user_posts = get_posts( $args );
$current_user = wp_get_current_user();