0

I just try to make a forum with BuddyPress. Here I need to extend my user search based on who has a profile picture or not. So far I know BuddyPress does not store the avatar file name or path in the database. It loads avatars from the uploaded directory path. Like -

.../wp-content/uploads/avatars/{user_id}/

For example, the full sized avatar for a member is

.../wp-content/uploads/avatars/1/5cac43a20ebac-bpfull.jpg

where 1 is the user_id.

So does anyone have the idea of a way to store the file name in DB?

Thanks is advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.