Böyle bir kod buldum, inşallah aradığındır.
function get_related_author_posts() {
global $authordata, $post;
$authors_posts = get_posts( array( 'author' => $authordata->ID, 'post__not_in' => array( $post->ID ), 'posts_per_page' => 5 ) );
$output = '<ul>';
foreach ( $authors_posts as $authors_post ) {
$output .= '<li><a href="' . get_permalink( $authors_post->ID ) . '">' . apply_filters( 'the_title', $authors_post->post_title, $authors_post->ID ) . '</a></li>';
}
$output .= '</ul>';
return $output;
}5 yazan yeri bir yaparsan tek yazısını gösterirmişsin.
Şimdi widgette kullanmak üzere bi görsel hazırladım, aşağıdaki örnekte göründüğü gibi. Böyle bir kaç tane yazar olacak, ben bu görseli sabit tutucam, orada "Firavunlar bizi böyle aptallaştırdılar" kısmı ise o yazarın son yazısından gelicek. Bunu hangi kodla çekerim?