How to Add Author, Date and Time Info to the Index Loop


show more Adding author, date, and time information to the index loop provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes show less
please wait ...

Adding author, date, and time information to the index loop

Once you start personalizing your child theme, you'll probably want to make changes to the index pages, as well as a single posts and pages. Working with the index templates require a bit more thinking on your end, but it's not any more complicated, and you can produce some pretty cool results with very little effort. In the 2012 Theme, the only thing you see under the post title is a link to the comments, as you can see right here. If you want to know who wrote the story, when it was published, or any other information, you need to scroll all the way down to the bottom of the post.

I personally don't think this makes any sense. I think the author name and the publishing date should be at the very top, along with a link to the comments. So that's what we're going to do. A little earlier in the course we took a brief look at how the index page works, so let's just quickly look back at that file. If we look at index.php, you'll see that inside the loop where we'...

Adding author, date, and time information to the index loop
Video duration: 7m 15s 3h 11m Intermediate Updated Nov 27, 2012

Viewers:

Adding author, date, and time information to the index loop provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes

Subject:
Web
Software:
WordPress
Author:
please wait ...