Ready to get started?Download WordPress


Author Name (2 posts)

  1. AJSparxx
    Posted 7 years ago #

    I can really use some assistance in adding the author name of the post to the bottom of the page .. This is the index.php for the theme. Everything I have tried has blown up the site, causing me to reload the index.php

    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="postinfo">
    <small> <!-- by <?php the_author() ?> --></small>

    <div class="entry">


    <p class="postmetadata">Posted in | </p>

    <div class="navigation">
    <div class="alignleft"></div>
    <div class="alignright"></div>

    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that isn't here.</p>

  2. vkaryl
    Posted 7 years ago #

    Make this: <!-- by <?php the_author() ?> -->

    look like this: by <?php the_author() ?>

    Leave everything else the way it is now. [What you have is a "commented" author line; what you're doing is "uncommenting" it....]

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.