author.php is breaking my theme
-
hi all
i have followed the tutorial to create the author.php so that i can display author’s articles on a author’s template. the tutorial pretty much prvided the codes , but it does not work well inside my theme. any help your be greatly appreciated.here is the messed up page: http://palestrasespiritas.org/rje/?author=2
and here is the author.php code i am using for that page:
?php get_header(); ?>
<div id=”content” class=”narrowcolumn”>
<!– This sets the $curauth variable –>
<?php
if(isset($_GET[‘author_name’])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($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: ?>
<?php _e(‘No posts by this author.’); ?><?php endif; ?>
<!– End Loop –></div>
<?php get_sidebar(); ?>
<?php get_footer(); ?> -
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
- The topic ‘author.php is breaking my theme’ is closed to new replies.