•  » Engine
  •  » Get Images by Tag

#1 2012-06-24 00:07:37


Get Images by Tag


I have just started to integrate my Piwigo installation into the main design of my website by means of a custom theme, based on the "dark" theme.  You can see my efforts at:

What I want to do now is be able to reference a group of images from all albums based on the tag of the image from within my main site PHP code.

Let me explain with an example:

On the "Cars" page we list all the members of the club and the cars the own.  If the user were to click to view more about "Mark's Car" that would take them to the page for that car.  In the Piwigo albums any photos of this car are tagged as "mark".  The PHP on the cars page should be able to do something like:

$carImages = $piwigo->getImagesByTag('mark');

This I would see as an array of image details or urls that I could then display as thumbnails on the page, linking of course back to the piwigo image page.

My question is: Is this possible? And if so how??

Thank you,




#2 2012-06-24 00:13:34

Former Piwigo Team
Lyon (FR)

Re: Get Images by Tag

it's possible with the web API, method "pwg.tags.getImages"
a complete documentation is available at

I let you try, tell me you need help


  •  » Engine
  •  » Get Images by Tag

Board footer

Powered by FluxBB

github twitter newsletter Donate © 2002-2022 · Contact