function db_recent_posts() { global $post; $args = array( 'numberposts' => 5 ); $recent_posts = get_posts( $args ); echo '<ol>'; foreach( $recent_posts as $post ) { setup_postdata( $post ); echo '<li>(' . get_the_date( 'Y年n月d日' ) . ') <a href="' . get_the_permalink() . '">' . get_the_title() . '</a></li>'; } echo '</ol>'; } function add_db_recent_posts() { wp_add_dashboard_widget( 'db_recent_posts