Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a problem with my wordpress blog here. everything seems to be working fine but the problem is after each post i am appending author information like the image below

Murali Prashanth

but when i click on the

View all posts by Murali Prashanth hyperlink

it's redirecting me to this URL http://muraliprashanth.me/author/Murali%20Prashanth/ I don't know where to create the author profile page or does my wordpress theme supports author profile pages or not Please suggest me i am struggling to resolve this issue from past 3 months, Help is much appreciated.

Thanks in advance.

share|improve this question

2 Answers 2

How are you creating the author's link?

If you put in your template:

<?php the_author_posts_link(); ?>

It will write the author's name and link for the current post.

To modify the template for the author page, wordpress search for the following files in your theme's folder (in this order):

  1. author-{nicename}.php
  2. author-{id}.php
  3. author.php
  4. archive.php
  5. index.php
share|improve this answer
    
yes i have author.php page –  Murali Prasanth Dec 22 '12 at 10:40
    
can you put here the code you use to write the author information? –  dbeja Dec 22 '12 at 11:34
    
this is the sample code i am using codex.wordpress.org/Author_Templates#Sample_Template_File –  Murali Prasanth Dec 22 '12 at 11:36
    
no, I mean what you use in single post to show the author's link. –  dbeja Dec 22 '12 at 11:38
    
i used cool author box plugin to add author information –  Murali Prasanth Dec 22 '12 at 11:39

Looks like you don't have author.php file.

Make sure you have author.php file.

sample author.php code

<?php get_header(); ?>

<div id="content" class="narrowcolumn">

<!-- This sets the $curauth variable -->

    <?php
    $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
    ?>

    <h2>About: <?php echo $curauth->nickname; ?></h2>
    <dl>
        <dt>Website</dt>
        <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
        <dt>Profile</dt>
        <dd><?php echo $curauth->user_description; ?></dd>
    </dl>

    <h2>Posts by <?php echo $curauth->nickname; ?>:</h2>

    <ul>
<!-- The Loop -->

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <li>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
            <?php the_title(); ?></a>,
            <?php the_time('d M Y'); ?> in <?php the_category('&');?>
        </li>

    <?php endwhile; else: ?>
        <p><?php _e('No posts by this author.'); ?></p>

    <?php endif; ?>

<!-- End Loop -->

    </ul>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
share|improve this answer
    
yes i got the author.php page check this out muraliprashanth.me/wp-content/themes/admired/author.php –  Murali Prasanth Dec 22 '12 at 11:08
    
It might be permalinks problem. Just goto permalinks settings -> default -> save changes then roll back –  Giri Dec 22 '12 at 13:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.