WordPress.org

Ready to get started?Download WordPress

Forums

Help getting author to display (3 posts)

  1. algaroke
    Member
    Posted 4 years ago #

    Can anyone help with this, I am using the Theme "WordPress Default - kubrick"

    I want to display the name of author for each post, so I edited single.php and within "The Loop" I added:

    <h2><?php the_title(); ?></h2><small><?php the_author(); ?></small>

    but it doesn't work. Maybe I edited the wrong php file?

    thanks,
    al

  2. Samuel B
    moderator
    Posted 4 years ago #

  3. algaroke
    Member
    Posted 4 years ago #

    I edited
    wp-content/themes/default/index.php

    pasted in the lines to test the_author() info right after:

    <p class="postmetadata">Posted in <?php the_category(', ') ?>...

    saved the file and loaded the page into the browser and nothing about the_author was displayed. The site has multiple users and several of them have Role set to Administrator (but not all). Any other ideas on how to debug this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags