• Hi

    I would like to add a feature to show a set of Google Photos albums on a page based on the album’s name prefix. I’m not a WordPress developer and was wondering if you could give me some directions … some dummy code and where to put it to get me started more quickly?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Unfortunately this is not possible, and the problem lies with Google.

    Google also does not offer a way to search for albums by name or wildcard, so it is not possible to pass a search string to it and get the response directly from the API. The only way to support this requirement would be to fetch all albums, then check for wildcard matches against their names and then show them in the results. The problem with this is manifold – Google only returns up to 50 albums in one shot, so fetching all albums if you have more than 50 requires an iterative query (this is harder to implement than it sounds, and you end up eating into your API quota limits). Searching for an arbitrary wildcard after fetching results poses its own set of additional problems.

    If you were on SmugMug or Flickr or Zenfolio you would have been able to create a folder or a collection or a group respectively to meet your requirements. But with Google this sort of a grouping of albums is also not possible.

Viewing 1 replies (of 1 total)
  • The topic ‘Help with new feature to Google Photos’ is closed to new replies.