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″
Error fetching Flickr photos: Retrieved unsupported status code "404"
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;}
Great code, Russell really helped me out!