Recently added photos?


#1

Hi,

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

Any help would be greatly appreciated.


#2

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.


#3

Thanks, Worked like a charm!

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


#4

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.


#5

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; }


#6

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.


#7