Support » Theme: 90s Retro » Avatars not displaying in posts

  • Resolved safeinsanity

    (@safeinsanity)


    Hi, user avatars are displaying in the comments but not in the actual post. Is there a way I can get this working?

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

    (@organicthemes)

    Hi, do you have a link to your site?

    Thanks!

    I figured out a way to add the avatars to the main blog post page. I had to edit the loop-post.php file and add this part:
    <?php echo get_avatar( get_the_author_meta( 'ID' ), 96 ); ?>
    to the code like shown below :

    <div class="post-author">
    				<p><?php esc_html_e( 'by', '90s-retro' ); ?> <?php esc_url( the_author_posts_link() ); ?></p>
    			</div>
    		<?php } ?>
    
    		<span class="divider-small"></span>
    		
    		<?php echo get_avatar( get_the_author_meta( 'ID' ), 96 ); ?>
    
    		<?php the_content(); ?>
    • This reply was modified 1 year, 10 months ago by  safeinsanity.
    • This reply was modified 1 year, 10 months ago by  safeinsanity.
    Theme Author Organic Themes

    (@organicthemes)

    That’ll do it. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Avatars not displaying in posts’ is closed to new replies.