Okay so what’s the code you’re using and what is the result?
Hi Rajesh,
The code I’m currently using is:
<?php
global $post;
$current_author = get_query_var('author');
$author_posts= get_posts( 'author='.$user->id.'&posts_per_page=15' );
foreach ($author_posts as $author_post) :
setup_postdata($post);
?>
The results I get is that when I click on an Author’s name, it displays a list of the same article from which I clicked the name from. So if the article was named ‘Hello World’ and I clicked the authors name, it would display a list of 15 ‘Hello World’ articles.
Hey CombatPost,
I’m sorry if I’m misunderstanding what you’re hoping to do, but does WordPress’ sample author template provide any insight?
Is there something else you’re trying to accomplish that isn’t described in that template?
Hi,
My mistake, I was misreading the sample templates. Got it all working fine now, thanks for the replies.
Try changing
setup_postdata($post);
to
setup_postdata($author_post);