{"id":3821109,"date":"2013-06-07T05:13:23","date_gmt":"2013-06-07T05:13:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/sets-1\/"},"modified":"2016-08-21T01:47:36","modified_gmt":"2016-08-21T01:47:36","slug":"sets-1","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/sets-1\/","title":{"rendered":"Flickr Photostream Sets"},"content":{"rendered":"<p>Those looking for sets can easily implement it within the plugin with a bit of logic. <\/p>\n<p>Around line 146 of flickr-photostream.php in the plugin use a different function. <\/p>\n<p><code>$photos = $f-&gt;photosets_getPhotos(72157633896989722, NULL, &quot;description&quot;, $max_num_photos, $l_flickrpsp);<\/code><\/p>\n<p>use var_dump or print_r to look inside the returned array, or better still<br \/>\n<code>print(&quot;&lt;pre&gt;&quot;.print_r($photos,true).&quot;&lt;\/pre&gt;&quot;);<\/code><\/p>\n<p>The elements of the array are named differently so then you will have to use [&#8216;photoset&#8217;] in the subsequent arrays. <\/p>\n<p><code>if(count((array)$photos[&#039;photoset&#039;][&#039;photo&#039;]) == 0) return(__(&#039;&lt;h1&gt;No photos&lt;\/h1&gt;&#039;, &#039;flickr-photostream&#039;));<\/code><\/p>\n<p>it should be possible to add this into the short code for use without too much difficulty. <\/p>\n<p>Wonderful plugin gives excellent results so congratulations to the author.<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/flickr-photostream\/<\/p>\n","protected":false},"template":"","class_list":["post-3821109","topic","type-topic","status-closed","hentry","topic-tag-resize","topic-tag-sets"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3821109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3821109\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3821109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}