Recently added photos?

Hi,

Is there a way to display a list of recently added photos on my homepage?

Any help would be greatly appreciated.

Hi @parousia,

Yes, you can use shortcode in your home page to display recently added photos. For example below is the sample shortcode which will display 3 recent photos:

<?php echo do_shortcode('[rtmedia_gallery global="true" media_type="photo" per_page="3"]'); ?>

Thank you.

Thanks, Worked like a charm!

Could you tell me how to remove the “media gallery” title?

Hi @parousia,

We are glad to know that shortcode works fine for you. You are weolcome !

Try adding below css code to Custom Css tab under rtMedia admin settings to hide “Media Gallery” title from media tab.

.rtmedia-container #rtm-gallery-title-container .rtm-gallery-title { display:none; }

Let us know if it helps you or not.

Thank you.

Hi Thanks again!

I unfortunately couldnt get that to work, however I tried this code and it seems to do the trick.

Is it likely to conflict with anything else?

.rtmedia-container h2, .rtmedia-activity-container h2, #buddypress div.rtmedia-activity-container h2 { display: none; }

Hello @parousia,

The code given by us will hide media title as shown in below image :

Is this what you want or you want to hide any other title?

Thank you.