If you have an Author Template then natively WordPress will do that.
But if you have something different, then you might use something like this:
<?php
//display all post titles for author id 4
$args=array(
'author' => 4,
'showposts'=>-1,
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
echo '<h2>More Posts</h2>';
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
<?php
endwhile;
} //if ($my_query)
wp_reset_query(); // Restore global post data stomped by the_post().
?>
Thank you!
What parts exactly do I have to change for the specific author?
this may be a retarded question
but
do i just copy that whole thing into the html code space of a blank page?
my template doesnt have an author thing but it does have an archive one, should i use the default template or the archive one?
thanks
we have writer’s pages with a picture and a bio of the writer
Please paste all the code from the theme template file that displays the author information into a pastebin such as wordpress.pastebin.ca, and report the link back here. Maybe someone can answer your question. Thanks.
What is the ID is dynamic which means I want to display these sets of latest posts beside an author’s posts?