list author’s post
-
Hi I’ve been looking around the forum, support and plugins and I still haven’t figure out how to add a list with the titles and links of the posts of one author, but outside of the author template.
what i am trying to do is a category where every post will be a little description of one of the authors and then a list of all the posts published by that author, or maybe the last 10 or 8… any.I figured out that in order to get this well done, first i had to take off the author’s name of every post in this category.
Then also, that once i published one author profile, I have to do it using the mane of the author i’m writing about.This is what I’ve done until now, but it’s not working ??
anyone please, help..here…
<?php get_header(); ?>
<div id=”wrapper”>
<div id=”single”>
<?php query_posts(‘cat=142’); ?>
<?php while (have_posts()) : the_post(); ?><div class=”entry”>
<h1>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h1><div style=”padding-top: 30px;”>
<?php the_content();?>
</div><div style=”padding-bottom:10px;”>
<?php
if(get_query_var(‘author_name’)) :
$curauth = get_userdatabylogin(get_query_var(‘author_name’));
else :
$curauth = get_userdata(get_query_var(‘author’));
endif;
?>
<h2>Posts by <?php echo $curauth->nickname; ?>:</h2>-
<!– The Loop –>
-
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
<?php the_title(); ?>,
<?php the_time(‘d M Y’); ?> in <?php the_category(‘&’);?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php endwhile; else: ?>
<p><?php _e(‘No posts by this author.’); ?></p><?php endif; ?>
<!– End Loop –></div>
<p><?php if (function_exists(‘sharethis_button’)) { sharethis_button(); } ?>
</p>
<?php include (TEMPLATEPATH . ‘/social.php’); ?>
<br class=”clear” />
</div>
<?php endwhile; ?>
<?php if(function_exists(‘wp_page_numbers’)) { wp_page_numbers(); } ?></div>
</div><div style=”margin-right: 10px;”>
<?php get_rsidebar(); ?>
</div><?php get_footer(); ?>
-
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
- The topic ‘list author’s post’ is closed to new replies.