Forums

Name not showing (2 posts)

  1. LoveOladele
    Member
    Posted 2 years ago #

    I designed a blog for a myself http://www.kudoeresiaeke.com, but each time I post an article, my name do not appear why?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    The WordPress Default theme has an example of the_author in the wp-content/themes/default/index.php but the code is 'commented-out' so it doesn't execute. So if you wanted to display the author info with the WordPress Default theme you would change the line in wp-content/theme/default/index.php
    from:
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    to
    <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?> </small>

    Note the use of the template tag, the_author_posts_link(), which causes the author's name to be presented as a link to his/her posts.

    This also demonstrates the template tag, the_time(), which displays the date.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags