I have a page where I want to display the photos of selected users. Is there a way to display a user’s profile picture from the user’s Wordpress ID?
Please try to use this WordPress function to display user’s profile image get_avatar() | Function | WordPress Developer Resources
I can’t get this to work. Does this work as a shortcode or do I need to be able to code PHP?
This depends on the implementation, if you created a custom PHP template part then you can use this function directly, if you’re just editing the page content then a shortcode or a block is required. If the shortcode is required please check some plugins or this solution How to display a user's avatar by user-id in wordpress via shortcode? - Stack Overflow
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.