The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Display Who Posted? (5 posts)

  1. tech22
    Posted 10 years ago #

    Hi, we've setup a lot of authors for a blog and would like for the name of user posting a post to be displayed on their post (EX: "posted by John Billoway at 11:12AM"). Is there anyway to have WordPress do this?


  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    In the classic theme:

    <div class="meta">
    <?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?>

    <?php the_author()?> is the bit you want.

  3. moshu
    Posted 10 years ago #

    Yes, you just have tell us:
    what theme? - even better give us a link.
    Also, I hope you've searched as it is advised next to the posting area...

    For the future, just remember the Codex (the online manual) is your best friend:

  4. tech22
    Posted 10 years ago #

    I got it figured out. I thought there was just a checkbox somewhere that would add the poster's name. Didn't know I would have to dig around in the code- it was fun though.

    For posterity's sake: I was using the default theme, and I just went into Presentation>Theme Editor, clicked on Main Index File and found the php code that displays the date of the post. Next to it the author's name was commented out, so I just had to uncomment it and save the changes.

  5. moshu
    Posted 10 years ago #

    Thank you for posting back your solution. Happy blogging!

Topic Closed

This topic has been closed to new replies.

About this Topic