Title: Author Template- posts do not link correctly
Last modified: August 19, 2016

---

# Author Template- posts do not link correctly

 *  Resolved [oste15](https://wordpress.org/support/users/oste15/)
 * (@oste15)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/author-template-posts-do-not-link-correctly/)
 * I followed this [http://wphacks.com/how-to-adding-an-author-page-to-your-wordpress-blog/](http://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 [http://www.aquaculturetalk.com/author/admin/](http://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; ?>](https://wordpress.org/support/topic/author-template-posts-do-not-link-correctly/”<?php)
   </p> <p>**Profile:** <?php echo $curauth->user_description; ?></p> <h3>Posts 
   by <?php echo $curauth->display_name; ?>:</h3>
    -  <!– The Loop –>
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post();?
      >
    -  [” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
       <?php the_title();?
      >
    - <?php endwhile; else: ?>
       <?php endif; ?> <!– End Loop –>
 * </div>
    </div> <ul class=”foot”> </div> <?php get_sidebar(); ?> <?php get_footer();?
   >

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/author-template-posts-do-not-link-correctly/#post-963737)
 * The post link from wp-content/themes/default/index.php is coded as:
    `<h2><a 
   href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php
   the_title_attribute(); ?>"><?php the_title(); ?></a></h2>`
 * Other resource
    [Creating_an_Archive_Index](http://codex.wordpress.org/Creating_an_Archive_Index)
   [Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
 *  Thread Starter [oste15](https://wordpress.org/support/users/oste15/)
 * (@oste15)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/author-template-posts-do-not-link-correctly/#post-963877)
 * ok I got that to work, Thanks for the help.
 * One other small issue. CAn you show me how to fix the profile text so that it
   doesnt get so close to the sidebar.
 * I am guessing I need to make that a div but I am not sure how to do that.
 * Again I am new to this, so any help is greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Author Template- posts do not link correctly’ is closed to new replies.

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 2 replies
 * 2 participants
 * Last reply from: [oste15](https://wordpress.org/support/users/oste15/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/author-template-posts-do-not-link-correctly/#post-963877)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
