user_login; $usemail = $user->user_email; $query_args = array( 'post_type' => 'post', 'author' => $user->ID, ); $query = new WP_Query($query_args); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); $post = $query->post; $title = $post->post_title; $excerpt = get_the_excerpt(); $content = $post->post_content; $link = get_post_permalink(); $thumb = get_the_post_thumbnail_url(); echo '

' . $title . '

'; echo '

' . $excerpt . '

'; } wp_reset_postdata(); } else{ echo 'No posts found.'; } ?>

Buscar...