Digital Photography Tips, Tutorials and Resources
Have you ever wanted to organize your photos in WordPress only to realize that it’s not possible. Despite modest improvements, WordPress Media Library is long away away from being a perfect solution. That’s why we built a solution that allows you to group photos in WordPress by using tags. In this article, we will explain how to group photos and organize them in WordPress.
Understanding the WordPress Images Problem
WordPress’ drag-and-drop media uploader makes it really easy to upload photos. However, these photos are organized by the upload dates which is not ideal.
If you’re a photographer who upload thousands of photos, then you probably need a better way to sort and organize your photos.
For example, if you take a trip to London in 2014 and 2015, and wanted to showcase all your photos from your London trips, it would be nearly impossible with the native WordPress media library.
Well, we fixed that.
How to Tag Photos in WordPress
The best way to organize images in WordPress is by using tags. Image tags allow you to group your WordPress photos and easily sort them in a gallery display.
Since our goal at Envira Gallery is to be most complete WordPress gallery plugin, we created a Tags Addon that can help you organize your photos in groups.
Aside from organizing your photos using tags in the WordPress admin area, Envira also allows you to create new galleries based on tags as well as sort images by tag within an existing gallery.
Let’s take a look at how you can tag photos in WordPress.
First thing you need to do is to install and activate Envira Gallery plugin. Next, you need to activate the Tags Addon.
You can activate addons by going to Envira Gallery » Settings and clicking on Install Addon.
Once you have activated the Tags Addon, let’s go ahead and create a new gallery.
On the gallery creation screen, go to the Tags tab and enable the tag filtering option.
Now as you upload the images in the gallery, click on the information (i) icon to add the tags of your choice. Repeat this step with all the images to tag them.
Your images can have multiple tags as long as they are comma separated. You can use dashes (-) and underscores (_) in your tags, but don’t use periods or other special characters.
Once the tags are added, go ahead and save the gallery.
Next, you need to add the gallery to a post or page. You can do this by creating a new post or existing an old one.
From your post editor screen, click on the Add Gallery button and select the gallery you want to display.
Now when you visit the gallery page, you will see that there is a sort by tag option above your photos. Your users can click on the tag name, and it will display all photos associated with that tag.
How to Create WordPress Galleries Based on Tags
Aside from the sort by tag options that you can add to individual galleries, you can also use tags to dynamically create galleries based on individual tags.
Envira’s Dynamic Addon allows you to create galleries from multiple sources, and image tags is one of them.
First, you would need to install and activate the Dynamic Addon.
Next use the following shortcode to display galleries based on tags:
You can find your image tags ID by going to Envira Gallery » Tags and clicking on the individual tag. The URL will look something like this:
Use that tag ID in your shortcode, and the Dynamic addon will create a new gallery based on the specified tag.
This gallery will be dynamically updated as you add new photos on your site with the specific tag.
We hope this article explained you how to group photos and organize them in WordPress. You may also want to check out our hand-picked list of 55 best free WordPress Photography themes.