Gallery 3 is a popular open-source photo organizer that works on the LAMP (Linux – Apache- MySql – PHP) stack.
The requirement here was to create a WordPress Gallery 3 widget that can be easily installed on any WP based website and that will automatically link and fetch the latest photos/images uploaded on an installed Gallery 3 client through the API provided by the Gallery 3 Project.
The solution consisted of creating a WordPress widget through a plugin that seamlessly integrated with the Gallery 3 Project’s REST API to fetch the images that the user has uploaded in his Gallery 3 installation.
The widget also features a asynchronous call through the REST API that automatically fetches the latest images once the widget is installed.
Additional flexibility to set the number of rows and number of images to display was also added to the widget to take care of of web design and aesthetic purposes.