• Resolved Nick Ottens

    (@ottens)


    Would it be possible to display the author’s name next to the category and comment count in the post header?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @ottens,

    Not out of the box, no. You would have to create a child theme, copy the file singular.php to it and add output of the author name within the .meta element.

    — Anders

    • This reply was modified 6 years, 3 months ago by Anders Norén.
    Thread Starter Nick Ottens

    (@ottens)

    Thanks!

    In case anyone is interested, here’s what I did:

    <div class="meta">
    
    <?php 
    echo __( 'In', 'hamilton' ) . ' '; the_category( ', ' ); ?>
    							
    <span>&bull;</span>
    							
    <?php 
    echo __( 'By', 'hamilton' ) . ' '; the_author_posts_link();
    
    if ( comments_open() ) : ?>
    

    Great theme!

    • This reply was modified 6 years, 3 months ago by Nick Ottens.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add author name’ is closed to new replies.