Slickr Flickr Pro

  • Change History
  • Examples
  • Features
  • News
  • Slickr Flickr Authentication Token Fetcher
  • Member Login

Filtering and Showing A Specific Number Of Items

March 15, 2016 by Russell 1 Comment

Here we want to show 14 landscape photos on the gallery. What we will do is grab 30 photos, then apply the orientation filtering and assume we get enough landscape photos. We then use CSS to just show the first 14.

slickr-flickr id=”21087204@N06″ search=”sets” set=”72157665852000946″ items=”30″ bottom=”10″ orientation=”landscape” restrict=”orientation” type=”gallery” options=”lightbox:true;thumbnail:lazy” class=”showfirst14″

No photos available right now.

Please verify your settings, clear your RSS cache on the Slickr Flickr Admin page and check your Flickr feed

Example CSS

Add the following CSS custom class to your style.css or Custom CSS file


.showfirst14 .slickr-flickr-gallery li:nth-child(n+15) { display: none;}

Filed Under: Examples

Comments

  1. René says

    March 16, 2016 at 8:21 am

    Great code, Russell really helped me out!

    Reply

Leave a Reply to René Cancel reply

Your email address will not be published. Required fields are marked *

Return To Top
  • Slickr Flickr Pro 2.8
  • Contact
  • Privacy
  • Terms
2010-2025 Purple Parasol Ltd
141 Englishcombe Lane · Bath · Avon · BA2 2EL · UK