WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Author byline excluding specific admin (6 posts)

  1. Emily
    Member
    Posted 1 year ago #

    Hi,

    I am looking to include a byline on my blog for the various authors and used this code:
    <p>By: <?php the_author(''); ?> </p>

    It works exactly how I want, except that it shows me (admin) on the About (http://www.oic-books.com/blog/about/) and Archive (http://www.oic-books.com/blog/archive/) pages as the author.

    I tried changing the code to
    <p>By: <?php the_author('exclude_admin=1'); ?> </p>
    but I still show up. (I also tried =0 and changing it to my username: OIC_Admin.)

    Any help you can provide is appreciated.
    Emily

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. Emily
    Member
    Posted 1 year ago #

    Hi Esmi,

    That's where I found this code. How do I exclude myself?

    Emily

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

  5. Emily
    Member
    Posted 1 year ago #

    Rev. Voodoo- that's perfect! Thank you so much!

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    Excellent!

Topic Closed

This topic has been closed to new replies.

About this Topic