User avatar
pobranie zdjęcia, miniatury usera poprzez kod:
<?php echo get_avatar( $author_id ); ?> <?php echo get_avatar( $id_or_email, $size, $default, $alt, $args ); ?>
—
<?php global $post;
$author_id=$post->post_author; ?>
<img src="<?php the_field('avatar','user_'.$author_id); ?>" class="author_icon" alt="Avatar">
<h6 class="post-author"><?php the_author_meta( 'first_name', $author_id ); ?> <?php the_author_meta( 'last_name', $author_id ); ?></h6>
<?php
$id = get_the_author_id();
?>
<h6 class="post-author"><?php the_author_meta( 'first_name', $id ); ?> <?php the_author_meta( 'last_name', $id ); ?></h6>
<img src="<?php the_field('avatar','user_'.$id); ?>" alt="Avatar">
Hope this helps and happy coding :)
Zobacz jeszcze
płynny scroll do kotwicy
aby płynnie przejść do kolejnego elementu strony opatrzonego w anchor lub topu strony korzystamy z: //scroll to anchor $('.down_btn').click(function() { $('html,...