WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using rtmedia plugin to upload media files in my BuddyPress site. I need to get the array of all the video file source in home page. How to achieve this?

share|improve this question

If you just want to display a list of videos you can simply use rtmedia_gallery shortcode.

[rtmedia_gallery global="true" media_type="video" media_author="1"]

You can refer here for more: https://rtcamp.com/rtmedia/docs/common/shortcodes/gallery-shortcode/

Or you can directly ask for support on Plugin website. https://rtcamp.com/support/forum/rtmedia/

For a list of functions check: https://github.com/rtCamp/rtMedia/blob/master/app/main/controllers/template/rt-template-functions.php

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.