Display rTMedia on profile page with shortcode


#1

I want to display buddypress media on the profile page of a member just below the profile fields. I add the <?php echo do_shortcode('[bpmedia type="all" title="true" count="10" loadmore="true"]'); ?> just below the <?php do_action( 'bp_after_profile_loop_content' ); ?> line in profile-loop.php . But it only shows the shortcode instead of showing the media of that member. Could you please help me to solve it out?


#2

rtMedia no longer use bpmedia shortcode. The new shortcode is rtmedia_gallery.
Please check this document for more details -> https://rtcamp.com/rtmedia/docs/admin/shortcodes/


#3

But still it doesn’t work and I can’t understood how to specify type in the new shortcode. By the way it shows the bpmedia shortcode in your mentioned link. Could some one help me out to solve it.


#4

Yeah it tells about bpmedia shortcode but in highlighted area it tells that it for the precursor to rtMedia 3.0. Which version of rtMedia you are using?

To specify the media type tp photo you just need to specify media_type = ‘photo’.
Check our demo site -> http://demo.rtcamp.com/rtmedia/shortcode-demo/ for more details.


#5

Thanks a lot Ritesh …


#6

I am glad to know your issue is resolved :slight_smile:


#7