__( 'A monthly archive of your author’s Posts which appears on single post page.', 'wpb_author_archives_domain' ), ) ); } public function form( $instance ) { if ( isset( $instance[ 'title' ] ) ) { $title = $instance[ 'title' ]; } else { //$title = 'Archives'; $title = __( 'Author Archives', 'wpb_author_archives_domain' ); } // Widget admin form ?>

post_author; $postargs = array( 'posts_per_page' => 20, 'ignore_sticky_posts' => 1, 'author' => $current_user_id ); $postsbymonth = new WP_Query($postargs); if($postsbymonth->have_posts()){ echo $args['before_widget']; if ( ! empty( $title ) ) $authorname = get_the_author_meta( 'display_name', $current_user_id ); $title = str_replace('[authorname]', $authorname.'\'s', $title); echo $args['before_title'] . $title . $args['after_title']; while($postsbymonth->have_posts()) { $postsbymonth->the_post(); if(get_the_time('F') != $prev_month || get_the_time('Y') != $prev_year && get_the_time('Y') == $prev_limit_year) { ?>