adding the 'author' of the post in the title (2 posts)

  1. yanbu
    Posted 11 years ago #

    I am just getting started with all this, and have modified a template to my liking - but I can't find out how to add the author of the post to the title of the post, or underneath the title (and possibly the date of the post as well)

    I have a few people adding to the page and would like to show who posted what. THanks in advance for help, sorry if this has been answered already.


  2. Lorelle
    Posted 11 years ago #

    In the index.php or single.php template file of your Theme, whichever is used to display your single post views, look for the title which will look something like this:

    <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>

    And then add below it:

    <div id="authorname">By <?php the_author(); ?></div>

    or something like that with the_author() tag in there.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.