php - wordpress - add author picture on top of the post image -


i working in custom theme in wordpress. 1 of pages "solutions_page", displays post category "solutions", featured image, title , text.

on top of featured image, need add circle picture of author.

here problem, don't know or how it. thinking should put div position absolute featured image, , make circle. how can if not have featured image in code?

here single.php, not doing job not see div picture:

<?php get_header(); ?>  <div class="container">     <?php     if (have_posts()) {         while (have_posts()) {             the_post();              if (in_category('solutions')) {                 the_content();                 ?>               <div class="authorcircle">                 <img src="images/jules.jpg" alt=""/>               </div>           <?php           } else {               the_content();           }       } // end while   } // end if   ?> </div>   <?php   get_footer(); 

so authorcircle div want see in content of post category "solutions".

any ideas how can it? should put div inside the_content()?

thank in advance!!

please use code display author avatar @ code.

<?php echo get_avatar( get_the_author_meta('id'), 60); ?> 

in above code respectivly want author id.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -