Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12748

    Hi, I just started with “Sentence” and like it a lot. But I can’t seem to adjust my old blog posts. I need to include my name as author, and also the full date, with year to each post? Thank you

    #76588

    In includes/format-standard.php replace:

    <span class='date-day'><?php the_time('d') ?></span>
    <span class='date-month'><?php the_time('M') ?></span>

    with:

    <span class='date-day'><?php the_time('d') ?></span>
    <span class='date-month'><?php the_time('M') ?></span>
    <span class='date-year'><?php the_time('Y') ?></span>

    and add following code to the meta data (or the tags under the content):

    <p>This post was written by <?php the_author(); ?></p>

    Obviously you can change the text :)

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

The topic ‘How to add the author's name and date (with year) to a blog post’ is closed to new replies.