[Resolved] wont show my gravatar image

Home Forums Support [Resolved] wont show my gravatar image

Home Forums Support wont show my gravatar image

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #796362
    Matthias

    Hi, the author information wont show my gravatar, it leaves the image field blank. IS there anyway I can fix this?

    use this link for example:

    https://www.insoon.nl/wordpress-website-laten-maken/

    #796434
    David
    Staff
    Customer Support

    Hi there,

    can you try disabling your lazy loader plugin?

    #797751
    Matthias

    Hi, I have disabled lazy loading

    #797809
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Are you sure the email address you’re using is connected in your Gravatar account?

    #797845
    Matthias

    Yes ๐Ÿ™‚

    #797847
    Matthias

    It worked when I used a 3rd party plugin. But now I use this code in elements:

    <div class="author-box">
    	<?php 
    	
    	global $post;
    	
    	$author_id = $post->post_author;
    	
    	?>
    	
    	<div class="avatar"><?php echo get_avatar( get_the_author_meta( $author_id )); ?></div>
     
            <h5 class="author-title"><?php printf( esc_attr__( 'About %s', 'the author' ), get_the_author_meta( 'display_name') );?></h5>
    	
    				<div class="author-summary">
    	
            <p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
     
            <div class="author-links">
     
                <a>" title="Read more">
                    ...
                </a>
     
            </div>
     
        </div>
     
    </div>

    Since then the gravatar wont show

    #798181
    Tom
    Lead Developer
    Lead Developer

    Try this instead:

    <div class="author-box">
    	<?php 
    	global $post;
    	$author_id = $post->post_author;
    	?>
    	
    	<div class="avatar">
    		<?php echo get_avatar( $author_id ); ?>
    	</div>
    	
    	<h5 class="author-title"><?php printf( esc_attr__( 'About %s', 'the author' ), get_the_author_meta( 'display_name') );?></h5>
    	<div class="author-summary">
    		<p class="author-description"><?php echo wp_kses( get_the_author_meta( 'description' ), null ); ?></p>
    
    		<div class="author-links">
    			...
    		</div>
    	</div>
    </div>
    #798435
    Matthias

    thx that did the trick!

    #798876
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.