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;}
René says
Great code, Russell really helped me out!