• Hello,

    I’d like to remove the author from each post. It isn’t necessary for this info to be present.

    How do I do this?

    My site is https://www.snippetsofwisdom.com and the post author is ‘admin’.

    I thought just deleting one line of code (re: post author) here would work but it hasn’t:

    <h1><?php the_title(); ?></h1>

    <p class=”post_author”>by <?php the_author(); ?></p>

    <div class=”format_text”>
    <?php the_content(‘<p>Read the rest of this entry »</p>’); ?>
    <?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>
    </div>
    </div>

Viewing 1 replies (of 1 total)
  • Remove this line of code:

    <p class="post_author">by <?php the_author(); ?></p>

    To remove it from all instances of a post, you’ll need to remove it from index.php, single.php, etc.

    Has this not worked for you?

Viewing 1 replies (of 1 total)
  • The topic ‘How To: Remove author name from each post?’ is closed to new replies.