WordPress.org

Ready to get started?Download WordPress

Forums

Display Who Posted? (5 posts)

  1. tech22
    Member
    Posted 8 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?

    Thanks

  2. Mark (podz)
    Support Maven
    Posted 8 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')); ?>
    </div>

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

  3. moshu
    Member
    Posted 8 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:
    http://codex.wordpress.org/Template_Tags

  4. tech22
    Member
    Posted 8 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
    Member
    Posted 8 years ago #

    Thank you for posting back your solution. Happy blogging!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags