One of our readers recently inquired about adding categories and tags to images in the WordPress media library. Adding categories and tags to images in the media library in WordPress can make it easier to sort and locate them. We’ll show you how to add categories and tags to your WordPress media library in this article.

Why do you need to tag and categorise your images in the WordPress Media Library?

Taxonomies are a feature in WordPress that allows you to organize your posts into categories and tags, as well as create your own custom taxonomies.

Only posts have access to the default category and tag taxonomies. Taxonomies, on the other hand, can be added to any WordPress post type, including pages, attachments, and custom post types.

When you upload an image to your WordPress posts or pages, it is saved as an attachment in the WordPress media library. Because attachment is a post type, it can have its own taxonomies.

Adding categories and tags to your WordPress images can make it easier to find and sort them.

Method 1: Use the Media Library Categories to add categories to your images in WordPress.

The Attachment Taxonomies plugin should be installed and activated first. See our step-by-step guide to installing a WordPress plugin for further information.

There are no settings to configure with the Media Library Categories plugin because it works out of the box. Simply navigate to Media » Library and select the list view option at the top of the page.

This will bring up the media library in list mode. WordPress will take you to the edit image page if you click the ‘Edit’ link below any image.

In the right-hand column of the screen, you’ll notice a new category meta box.

To create a new category, select Add New Category from the drop-down menu. Sub-categories can be added as well.

Simply click the update button to save your changes after you’ve finished.

You must use the built-in WordPress gallery shortcode with the extra category parameter in order to display images or media organized by category.

[gallery title=”14″ gallery=”14″ gallery=”14″ gallery=”14″ gallery=”14″ gallery

14 should be replaced with the ID of the category from which you want to retrieve your images. See how to find the category ID in WordPress in our tutorial.

Method #2: Using Envira Gallery to Add Tags to Images in WordPress

Envira Gallery is the most popular WordPress photo gallery plugin. In WordPress, it allows you to create beautiful and mobile-friendly image galleries.

Envira Gallery includes a Tags Addon that allows you to tag images that you upload to galleries.

The tags addon is a paid plugin, and you’ll need at least a Silver license to use it. This Envira Gallery Coupon is good for a 25% discount for Yourblogmaster users.

The Envira Gallery plugin should be installed and activated first.

See our step-by-step guide to installing a WordPress plugin for further information.

You must enter your license key on the Envira Gallery » Settings page after activation. You can obtain the key by logging into your Envira Gallery account.

After you’ve verified your account, go to Envira Gallery » Addons. Click Install after you’ve found or searched for the Tags Addon. Click the activate addon button once it’s been installed.

You can create a new Gallery or edit an existing one after activating the Tags Addon.

You can edit the meta data of an image after it has been added to your gallery by clicking on the pencil icon on the image.

Envira will display the image in a popup window with the meta data fields in the right column. The tags field can be found near the bottom of the meta data fields.

Let’s get started on the tags.

Separate each tag with a comma if you’re adding more than one. Remember to save your changes by pressing the save metadata button.

Add tags to the remaining images in your gallery by repeating the process.

Tags can be displayed in your gallery as well. When editing your gallery, go to the tags tab and check the box next to Enable Tag Filtering.

You can choose which tags to show or hide, sort tags alphabetically or manually, and adjust other options.

Once you’re finished, save your gallery by clicking the publish or save button.

That’s all there is to it; hopefully, this article has taught you how to add categories and tags to your WordPress media library.

If you liked this post, please find and follow us on InstagramTwitter and Facebook.