WordPress.org

Ready to get started?Download WordPress

Forums

Question: Publishing Authors name? (5 posts)

  1. oddnews
    Member
    Posted 8 years ago #

    Is there any way to publish automatically authors name? I never found that feature to be turned on. As of me I use standard Word Press 1.5 with the default theme. And Both me and friend of mine publish articles, however, there are no authors name published in each article. Is there any way to solve this?

  2. Kafkaesqui

    Posted 8 years ago #

    http://codex.wordpress.org/Template_Tags/the_author

    This template tag would need to be added to your theme's templates to display author name on posts. As you've noticed, the default theme does not include it.

    EDIT: Actually, I should rephrase that. The default theme *does* include it, but has it commented out. So look for this in your theme templates:

    <!-- by <?php the_author() ?> -->

    And edit it down to:

    by <?php the_author() ?>

  3. oddnews
    Member
    Posted 8 years ago #

    oh, thanks. And what file should I edit?

  4. Kafkaesqui

    Posted 8 years ago #

    index.php holds the commented out line. If you want it on single post pages (single.php), on Page pages (page.php), and on archive and category listings (archive.php), you'll have to find an appropriate place to display it and add it there.

  5. oddnews
    Member
    Posted 8 years ago #

    OMG, was it that easy ? lol... it was. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.