Show current user posts only
<?php $query = new WP_Query([ ‘author’ => get_current_user_id(), ]); while ( $query->have_posts() ) { $query->the_post(); the_title(); } wp_reset_postdata(); ?> In the example above we are using WP_Query look on the reference guide for additional parameters such as different post types like if you want to get only pages, posts or custom post types, as well … Read more