Better Author Archives…. formatting question
-
Hi there, I’m a bit new to WP so bear with me. I inherited some pretty ugly Author pages with the code pasted below. What I’d rather do is have the first post, in full, then all subsequent posts just showing an excerpt with HTML and images stripped each inside some kind of div tag that I can style.
Can anyone help with some code idea to make this work? Thanks! Current code is:
<div id="myRecent"> <h2>Recent Articles</h2> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if(get_query_var('author')) { $author = get_query_var('author'); $auth_q = 'author'; } else { $author = get_query_var('author_name'); $auth_q = 'author_name'; } query_posts("$auth_q=$author&order=DESC&paged=$paged"); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="entry"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <?php the_content('',FALSE,''); ?> <p class="more"><img src="<?php bloginfo('template_url');?>/images/page_white_text.png" /> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> Read Full Article »</a> <img src="<?php bloginfo('template_url');?>/images/usergroup2-vi.gif" /> <a href="#">Discuss This »</a></p> </div> <?php endwhile; ?> </div> <?php else : ?> <p><?php _e('No posts by this author.'); ?></p> <?php endif; ?> </div>
The topic ‘Better Author Archives…. formatting question’ is closed to new replies.