• Resolved clintongreen

    (@clintongreen)


    Hi, I would like to show the author name underneath the post thumbnails on the Home page. It could be on the same line as Date and Number of Comments. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello clintongreen,
    Follow the steps below and the author name will be shown.
    1.Connect with your ftp credentials.
    2.Select your theme to edit
    3.Inside theme select content.php and download the file
    4.Go to bottom of the file > Replace the code with the following lines.Edit the file on your computer with notepad or another code editor.
    5.

    <p class="post-meta">
    <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta( 'display_name' ); ?></a>?
    <a href="<?php the_permalink(); ?>"><?php the_time(get_option('date_format')); ?></a>
    <?php if ( comments_open() ) {echo " — ";
    comments_popup_link( '0 Comments', '1 Comment', '% Comments');
    }
    ?>
    </p>
    </div> <!-- /post-header -->
    </div> <!-- /post -->

    6.Save the file and Re-upload the file to the server and overwrite the existing file.
    7.The changes should reflect now on your live site.

    Thanks!

    Thread Starter clintongreen

    (@clintongreen)

    Thanks bro, your’e awesome ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add author name to Home page, underneath thumbnails’ is closed to new replies.