How To: Add default BP avatar to customized wordpress theme
-
Hello,
The wordpress version I am using is 4.0.1
The BuddyPress version I am using is 2.1.1I am trying to display the user avatar that is being displayed by the BuddyPress plugin for EVERYTHING else except for what I need to use it for LOL.
The problem is the theme I’m using does not recognize the the BuddyPress call to the avatar. The code the theme is using is:
<?php echo get_avatar(CustomUser::$data['user']['ID'], 200); ?>
I keep trying to add bp_ in front of get_avatar but then it doesn’t display anything. I have also removed the info between the ()
I do not understand php that well and do not understand calling functions and getting them to display that well, but I have been known to copy and paste my way to glory sometimes.
I have found the “get avatar” functions in some of the function files of BuddyPress and tried to paste them into my functions file but I always get errors.
Please keep in mind I am a total php newb and will need a little guidance on where and how to apply the code. for example I found this one post that might have helped a couple days ago that said something like just paste get_function_shmitty_avatar, then the OP was like GREAT AWESOME OMG this worked so wonderful… and I still have no clue where to paste or how to correctly paste the php code, that was also for integrating the BB forum pics too. So anyways…
Thank you in advance for your time and assistance in helping me with this.
- The topic ‘How To: Add default BP avatar to customized wordpress theme’ is closed to new replies.