Possible loop on custom page?


#1

Hey there!

So I’m wondering if there’s a way I can loop through RTMedia and pass in arguments such as latest uploaded, most likes etc…

the idea is to have a page that shows latest images from the overall website.
Is there a global rtmedia that I can loop through and pass args?

  • Scott.

#2

Hi Scott,
If you use rtmedia_gallery shortcode -> https://rtcamp.com/rtmedia/docs/common/shortcodes/gallery-shortcode/ it will show recent media by default.


#3

Hey Ritesh, thank you very much for the shortcode, I can work with that - but there is one major problem that looks like it has not been addressed. Why is there no limit on the gallery shortcode?

This issue seems important, and should be looked at soon.


#4

Hi Scott,
We will look into this issue to add limit to show media in gallery shortcode. Right now it will show number of media that you have set in rtMedia admin setting.


#5