Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Author paulhuisman

    (@phuisman)

    The photos in the set / gallery have to be public in order to work.

    Thread Starter yesfree

    (@yesfree)

    These are the tabs i have, I dont have gallery

    Camera Roll
    Photostream
    Albums
    Favorites
    Groups Creations

    I know sets has been rename to album, What about the code below not displaying i’ve selected from my photostream.

    $flickr_photostream = get_field(flickr_test);
    
    if (isset($flickr_photostream['items'])) {
        foreach ($flickr_photostream['items'] as $id => $photo) {
            echo '<a href="' . $photo['large'] . '" title="' . $photo['title'] . '"><img src="' . $photo['thumb'] . '" /></a>';
        }
    }
    Plugin Author paulhuisman

    (@phuisman)

    Sets are albums yes.

    That code is correct but replace flickr_test with the field how you named it, and wrap “” around it.

    Like this:
    $flickr_photostream = get_field("my_flickrfield_name");

    Thread Starter yesfree

    (@yesfree)

    Paul Thanks a million times, Yes flick_test is the field name, I have even change it to a different name but its still not displaying, And i have set my album from private to public as well.

    Plugin Author paulhuisman

    (@phuisman)

    The code above is for photostream. If you want to display sets, use:

    $flickr_set = get_field('flickr_test');
    
    if (isset($flickr_set['items'])) {
        foreach ($flickr_set['items'] as $id => $photos) {
            foreach ($photos as $photo) {
                echo '<a href="' . $photo['large'] . '" title="' . $photo['title'] . '"><img src="' . $photo['thumb'] . '" /></a>';
            }
        }
    }

    Plugin Author paulhuisman

    (@phuisman)

    Does it work now? If so, can you mark this as resolved?

    Thread Starter yesfree

    (@yesfree)

    Hello Paul, Sorry i was not well for the last 2 days. The photostream returns all my images at the admin backend But its left with displaying it at the frontend, Still the code below doesn’t show anything.

    $flickr_photostream = get_field(flickr_test);
    
    if (isset($flickr_photostream['items'])) {
        foreach ($flickr_photostream['items'] as $id => $photo) {
            echo '<a href="' . $photo['large'] . '" title="' . $photo['title'] . '"><img src="' . $photo['thumb'] . '" /></a>';
        }
    }
    Plugin Author paulhuisman

    (@phuisman)

    These tips now are more “general PHP lessons” than actual flickr field problems but okay ??

    What’s the content of $flickr_photostream?

    Thread Starter yesfree

    (@yesfree)

    Paul do u use teamviewer, If yes i will give you my login credentials to check direct from the localhost.

    Plugin Author paulhuisman

    (@phuisman)

    Resolving because of irrelevance to actual plugin.

    Thread Starter yesfree

    (@yesfree)

    Worked on a live site.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘There are no Flickr sets available for user ID 111@N11’ is closed to new replies.