Question [Solved] Displaying the user's profile picture in Discase's comments through the meta field
Mar 01, 2023 9:43 am
Good time everyone
When a comment is registered in Diskaz, the profile image of the user is called by Diskaz through the image of his WordPress ID
On the other hand, the profile picture of my users is selected through a user meta field
And I need Diskaz to call the user's profile image from the meta field that I placed and display the same user's profile image in the user's comments.
Thank you for giving me a solution to this problem
Mar 02, 2023 8:14 am
wpDiscuz uses the native (core) WordPress get_avatar() function. You can use the same function and make the customization you want.
Mar 02, 2023 9:31 am
I checked a lot of code in wordpress and discase but I couldn't implement what I need because I don't have a good command of php language.
Thank you for your help, how exactly should I do this customization
I have put a meta field in the user profile of the media type with the ID user_image_profile so that any user can upload an image to my WordPress in the front of his profile.
I just want to do something that discase gets the value of users profile picture from the value of this field and display it in comments
This is very important for me and I will be grateful if you can help me to do this