How to make your author name show on wordpress articled

6 replies
My author name is showing up in my dashboard but not displayed when the article is published on blog.


I think I may have to insert a code like this

<?php the_author() ?>

Does anyone have any clue as to how I can get this to show?
Thanks
#articled #author #make #show #wordpress
  • Profile picture of the author proseocontent
    In your template index under the code for the article you need this:

    PHP Code:
    <small><?php the_author(); ?> am <?php the_time('l,'?> Date    <?php the_time('j. F Y'?></small>
    {{ DiscussionBoard.errors[5410477].message }}
    • Profile picture of the author Moneyland
      Thanks for code! I am still not able to do this as I do not really understand where I need to do to insert this code - can anyone help me further by telling me?

      Thanks



      Originally Posted by proseocontent View Post

      In your template index under the code for the article you need this:

      PHP Code:
      <small><?php the_author(); ?> am <?php the_time('l,'?> Date    <?php the_time('j. F Y'?></small>
      {{ DiscussionBoard.errors[5412933].message }}
  • Profile picture of the author Troy_Phillips
    Can you not just go to your admin panel under profile and add you author name there?
    Signature

    {{ DiscussionBoard.errors[5412970].message }}
    • Profile picture of the author keyon
      I believe WP (by default) credits the post to whomever signed in and published the post (yes?). If your login name is "admin" --that's who WP will credit the post to. If you want a different name to be credited, create an "author" and then sign in using that author login name.
      {{ DiscussionBoard.errors[5412996].message }}
      • Profile picture of the author Istvan Horvath
        Originally Posted by keyon View Post

        I believe WP (by default) credits the post to whomever signed in and published the post (yes?). If your login name is "admin" --that's who WP will credit the post to. If you want a different name to be credited, create an "author" and then sign in using that author login name.
        Hmm... don't you have the option to add first, last and nickname to ANY user (including the admin himself) and then select in which way you want any of those names to be displayed on posts???
        Signature

        {{ DiscussionBoard.errors[5413106].message }}
  • Profile picture of the author Istvan Horvath
    What the second poster wanted to say: edit your Main Template file (index.php) in your theme. Additionally, you may consider editing the following files:
    - single.php
    - page.php
    - archive.php

    More: Stepping Into Templates « WordPress Codex
    Signature

    {{ DiscussionBoard.errors[5412990].message }}

Trending Topics