Get author Meta for particular user inside the loop

I am using this code to get the meta for the current author in the loop.

get_avatar( get_the_author_meta( ‘ID’ ), 120);

How can I modify this to get the meta for a particular user ID? I tried for example to get the image for userID: 4 but this didn’t work.

get_avatar( get_the_author_meta( ‘4’ ), 120);

Read more here:: Get author Meta for particular user inside the loop

Leave a Reply

Your email address will not be published. Required fields are marked *