BuddyDev

Search

Shortcode for Profile Photo?

  • Participant
    Level: Enlightened
    Posts: 43
    la on #52278

    Do you have a plugin or way to have a shortcode for a user profile image?

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #52279

    Hi,
    Thank you for the question.
    I am sorry, we don’t have any shortcode for it.

    Do you want to show the profile photo using shortcode somewhere in the content?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 43
    la on #52282

    Yes but I want it to be the author of a post to display both display name and profile photo.
    I am doing it now with Publish Press author plugin, but the shortcode doesn’t have a profile photo parameter that I see.

    So, I’m realizing that in the BuddyPress universe, I don’t know how it would work. I have a template, so the shortcode I have which displays the display name based on the author of that particular post (based on the template).

    Is there anything like that in the BuddyPress ecosystem?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #52284

    Hi,
    Thank you for the reply.
    It is not difficult. We will add it to our xprofile shortcode plugin and will let you know within next 24 hours.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 43
    la on #52287

    Oh fabulous, thank you!
    I have it installed.

  • Participant
    Level: Enlightened
    Posts: 43
    la on #52289

    I’m just starting to use BP and Youzifi. Is WP User profile image and BP Avatar the same thing?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #52292

    Hi,
    When you are using BuddyPress, they are considered same as BuddyPress filters on default WordPress avatar.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 43
    la on #52294

    Ok thank you.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #52310

    Hello La,

    Please download the plugin “BP Shortcodes” from the following URL:

    https://github.com/buddydev/bp-shortcodes/archive/refs/heads/master.zip

    Install and activate it and use the shortcode like follows:

    
    For the profile photo replace user_id with yours or use username for displaying the photo 
    
    [bpsc-profile-photo user_id=1]
    

    and for displayed user name use

    
    For display name. Replace user_id with yours also you can use 
    
    [render_user_display_name user_id=1]
    
    

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved