How to show a thumbnail of a wodpress post in circular form?

1

I'm trying to display the image of the wordpress in rounded form, what would be the best way? It is returned through the "the_post_thumbnail ()" wordpress function. Can anyone help me?

<?php
 $postslist = get_posts('numberposts=2&order=DESC&orderby=date');
 foreach ($postslist as $post) :
 setup_postdata($post);
 ?>

 <?php static $count1 = 0; if ($count1 == "2") { break; } else { ?>
 <div class="post">
     <div class="imgwrap">
         <?php the_post_thumbnail(); ?>
     </div>
</div>
    
asked by anonymous 14.08.2015 / 15:38

1 answer

5

Through CSS . If you are allowed to use the file, change the imgwrap class that surrounds the image.

Place one:

.imgwrap{
     border-radius: 50%;
}
    
14.08.2015 / 15:46