rendered paste bodyadd_action( 'wp_dashboard_setup', 'display_current_user_posts_widget' );function display_current_user_posts_widget() { wp_add_dashboard_widget( 'current-user-posts', 'Your latest posts', 'display_current_user_posts' );}function display_current_user_posts() {$current_user = wp_get_current_user();$current_ID = $current_user->ID;$current_user_posts_opts = array ( 'showposts' => 3, 'author' => $current_ID, );$current_user_posts_query = new WP_Query($current_user_posts_opts);if ( $current_user_posts_query->have_posts() ) { while ( $current_user_posts_query->have_posts() ) : $current_user_posts_query->the_post(); ?><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title('<p>', '</p>'); ?></a> <?php endwhile;} else { echo "You haven't written any posts yet."; }}