Support » Plugin: rtMedia for WordPress, BuddyPress and bbPress » Using shortcode to display gallery

  • Hi,

    I’m using RTMedia with the Kleo theme, I want to display a user’s photo gallery on their profile page (with a shortcode if possible), but keeping the ‘Delete’ links for the user to delete any photo if they are viewing their own profile, but not if someone else is viewing their profile. So far this doesn’t seem to work with the shortcode provided in the documentation.

    Do you know if this is possible?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Pooja N Muchandikar

    (@pooja1210)

    Hi @mikee1001

    Our current shortcode functionality is as per your requirement.

    > So far this doesn’t seem to work with the shortcode provided in the documentation.

    Can you please elaborate or share the documentation link which you referred to?

    Will cross-check the shortcode and get back to you.

    Regards,
    Pooja

    Thread Starter Mike

    (@mikee1001)

    Hi Pooja,

    Thanks for your help, the shortcode I’m using is:

    [rtmedia_gallery context=”profile” context_id=”<?php echo bp_displayed_user_id() ?>”]

    Is this the correct one to use?

    Thanks

    Plugin Contributor Pooja N Muchandikar

    (@pooja1210)

    Hi @mikee1001,

    Sorry for the delay in response.

    > [rtmedia_gallery context=”profile” context_id=”<?php echo bp_displayed_user_id() ?>”]

    This shortcode looks fine.

    But please check if the context id is passed correctly. For this shortcode to work user ID needs to fetch then only the media will be displayed correctly.

    Regards,
    Pooja

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using shortcode to display gallery’ is closed to new replies.