• Resolved carrierj

    (@carrierj)


    Hi,
    Thanks for the great plugin. I have a lot of photos on Flickr that I use on my personal blog. So, you’re plugin really makes the task easier. I was wondering what other information we can get from the flickr set array. Is it possible to get the title of a photoset (album) and its cover photo. I would like to use it in a archive template of a custom post type instead of the post thumbnail.
    Thanks,
    Josée

    https://www.ads-software.com/plugins/flickr-field-for-advanced-custom-fields/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author paulhuisman

    (@phuisman)

    Try this:

    include_once(WP_PLUGIN_DIR. '/flickrfield/phpflickr/phpFlickr.php');
    $f = new phpFlickr('<INSERT_API_KEY_HERE>');
    $set_info = $f->photosets_getInfo('<INSERT_FLICKR_SET_ID_HERE>');
    var_dump($set_info);

    Dont know about photo cover, it might be the “primary” value in the results above.

    Thread Starter carrierj

    (@carrierj)

    Thanks a lot! That does the trick. From the photoset info, I can get both the title and the id of the primary photo (which is the cover photo of the album).
    Josée

    Plugin Author paulhuisman

    (@phuisman)

    Cool, resolving this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get title and and photo cover of album’ is closed to new replies.