HidrolikAdam adlı üyeden alıntı

Biraz geç olacak ama yeni gördüm kusura bakmayın.


global $wp_query;
$curauth = $wp_query->get_queried_object();
$id = $curauth->ID
$the_query = new WP_Query( array( 'author' => $id) );


// The Loop
if ( $the_query->have_posts() ) {
echo '
    ';
    while ( $the_query->have_posts() ) {
    $the_query->the_post();
    echo '
  • ' . get_the_title() . '
  • ';
    }
    echo '
';
} else {
// no posts found
}
/* Restore original Post Data */
wp_reset_postdata();


şeklinde author.php de basit bir kullanım işinizi görür. Gerekli şekilde düzenlersiniz.




hocam bu kodları;


kodları arasına yapıştırdım ancak olmadı.

Yanlış mı yaptık?