Support » Fixing WordPress » adding the ‘author’ of the post in the title

  • 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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘adding the ‘author’ of the post in the title’ is closed to new replies.