WordPress.org

Support

Support » Themes and Templates » [Resolved] Display author name in main page

[Resolved] Display author name in main page

  • Aninstinctkiller

    @aninstinctkiller

    Hey there!

    I saw the php code and it had support for displaying author name and date in single content page. But how can i show the author name in main page with all the article excerpts..

    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Themonic

    @themonic

    For doing this, replace line 25 of content.php with

    <?php if ( is_single() || is_home() ) : //for date on single and home page ?>

    Aninstinctkiller

    @aninstinctkiller

    It worked! but i had done some styling changes to the actual author, date bar.. so doesn’t fit. I’ll mark it as solved but is there a way to apply different styling on home page layout, like just the author name and not date or comment on the front page? thanks again!

    Great, I was looking this since many days.. thanks to author.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Display author name in main page’ is closed to new replies.