Author Template- posts do not link correctly
-
I followed this https://wphacks.com/how-to-adding-an-author-page-to-your-wordpress-blog/ tutorial to make an authors page.
You can see what I have at https://www.aquaculturetalk.com/author/admin/
The problem is when you click on a post link, you get a 404 error.
This is the code directly from my author.php page. Any help to fix this will be greatly appreciated.
<?php get_header(); ?>
<div class=”apost”>
<div class=”head”></div>
<div class=”content”>
<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;
?>
<h3>About: <?php echo $curauth->display_name; ?></h3>
<p>Website: user_url; ?>”><?php echo $curauth->user_url; ?></p>
<p>Profile: <?php echo $curauth->user_description; ?></p>
<h3>Posts by <?php echo $curauth->display_name; ?>:</h3>-
<!– The Loop –>
-
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
<?php the_title(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php endwhile; else: ?>
<?php endif; ?>
<!– End Loop –></div>
</div>
<ul class=”foot”>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?> -
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
- The topic ‘Author Template- posts do not link correctly’ is closed to new replies.