Theauthor

In the same line as the time tag, you'll notice this code: <!-- by <?php the_authorO ?> -->

The tag called the_author returns the name of the post's author. Why isn't that name showing up on the page, even though the tag is present? That tag has been commented out. The characters <!- -> are comment tags, which tell PHP to ignore any code between them. Just delete that comment code, which will make that line look like this:

The author's name appears as if by magic (Figure 12.5).

Figure 12.5 The post author's user name added to the post.

Title: Tweaking a stock theme n.17 pm on September 9th, 2008

Was this article helpful?

0 0

Post a comment