Tagged: , , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1052

    How do i add the name of the author to the post, in the post view and in the aggregated post view or blog?

    thanks,

    #33778

    You’ll find following code in all these files:

    <div class='post_data'>
    <span class='categories'><?php the_category(', ') ?><?php edit_post_link('Edit', ', ', ''); ?></span>
    <span class='author'><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
    </div><!--end post data-->

    change it to:

    <div class='post_data'>
    <span class='categories'><?php the_category(', ') ?><?php edit_post_link('Edit', ', ', ''); ?></span>
    <span class='author'><?php the_author(); ?> || <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
    </div><!--end post data-->

    The Dude

    #33779

    In which files do I make this change?

    Thanks,

    Art

    #33780

    Hi!

    Try template_blog.php

    Best regards,

    Noah

    #33781

    Thanks, Noah,

    I made the change, but am not seeing the name of the author. — http://carolinaelearning.com/ahs/

    Do I need to edit something else?

    Regards,

    Art

    #33782

    It worked when I made the change in single.php. :-)

    - Art

    #33783

    It’s working as expected: http://carolinaelearning.com/ahs/2010/10/october-2010-poll/

    Have a look at the posts’ headlines: Written by artlader || Comments Off

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Add author name to post’ is closed to new replies.