Gccoe

How to Add Categories and Tags to WordPress Media Library

Tips on how to Add Classes and Tags to WordPress Media Library


Do you need to add classes and tags to photographs in your WordPress media library?

Tags and classes might help you set up media recordsdata in a method that is smart to you. This will make it simpler to seek out photos whenever you want them.

On this article, we’ll present you the way to simply add classes and tags to the WordPress media library.

Why Add Classes and Tags to Photos in WordPress Media Library?

WordPress comes with a function known as taxonomies, which lets you type your posts into classes and tags or create your individual customized group sorts to your content material.

Nevertheless, the default class and tag taxonomies are solely accessible for posts. Which means these taxonomies will be added to any WordPress publish sort, together with pages, attachments, or any customized publish sort it’s possible you’ll be utilizing in your weblog.

While you add a picture to your WordPress posts or pages, it’s saved within the WordPress media library as an attachment. Which means it’s a publish sort and might have its personal taxonomies, too.

Including classes and tags to your WordPress photos might help you discover and type photos simply. As a substitute of trying by your whole picture library, you may simply search by class or tag.

Having mentioned that, let’s see the way to simply add classes and tags to photographs within the WordPress media library. We are going to cowl two strategies, and you should utilize the fast hyperlinks beneath to leap to the one you need to use:

Methodology 1: Add Classes to Photos within the WordPress Media Library

If you wish to add classes to your photos within the WordPress media library, then you should utilize this technique.

First, you want to set up and activate the Media Library Classes plugin. For extra particulars, see our step-by-step information on the way to set up a WordPress plugin.

This plugin works out of the field, and there are not any settings so that you can configure. Upon activation, the plugin will merely add a Classes tab beneath the Media menu tab within the WordPress dashboard.

Now, so as to add new classes to your photos, head over to the Media » Classes tab from the WordPress admin sidebar.

Right here, you’ll discover that every one the classes that you’ve got been utilizing to your posts are displayed in the correct column.

You need to use these classes to your photos. Nevertheless, if you wish to create a brand new one, then merely sort a class title and slug within the ‘Add New Class’ part.

Create and add categories for images

As soon as you might be accomplished, click on the ‘Add New Class’ button to retailer your settings.

Subsequent, go to the Media » Library web page from the admin space and click on on the ‘Edit’ hyperlink beneath any picture the place you need to add a class.

Choose an image to edit

It will open the picture of your alternative on the ‘Edit Media’ web page, the place you may simply choose a class for it from the ‘Classes’ part in the correct column.

As soon as you might be accomplished, don’t neglect to click on the ‘Replace’ button to avoid wasting your settings.

Add images category

In order for you, you may also create sub-categories for the pictures. For extra data, see our information on the way to add classes and subcategories.

Upon getting added the classes for all the pictures, you may simply type them on the ‘Library’ web page. To do that, choose a class of your alternative from the ‘View all classes’ dropdown menu and click on the ‘Filter’ button.

The WordPress media library will then solely show photos that belong to that class.

Filter images by category

If you wish to add tags to photographs within the media library and permit customers to filter photos by tag on the entrance finish, then this technique is for you.

Envira Gallery is the most effective WordPress picture gallery plugin in the marketplace. It means that you can create lovely and mobile-friendly picture galleries in WordPress.

Envira Gallery comes with a Tags Addon, which helps you to add tags to the pictures in your galleries.

First, you want to set up and activate the Envira Gallery plugin. For extra detailed directions, see our newbie’s information on the way to set up a WordPress plugin.

Word: Envira Gallery additionally has a free model. Nevertheless, you’ll want not less than the Plus plan for the plugin to unlock the Tags add-on.

Upon activation, go to the Envira Gallery » Settings web page from the WordPress dashboard to enter your license key.

You may get the important thing out of your account on the Envira Gallery web site.

Add the Envira Gallery license key

After that, go to the Envira Gallery » Addons web page from the WordPress dashboard and find the ‘Tags Addon’.

When you do this, merely click on the ‘Set up’ button to unlock the Tags function.

Upon set up, you’ll additionally should toggle the change to activate the Tags addon.

Install the Tags addon

Subsequent, you may create a brand new gallery to your WordPress weblog or edit an present one. For this tutorial, we shall be creating a brand new gallery to your WordPress web site.

To do that, go to the Envira Gallery » Add New web page from the WordPress dashboard. Right here, you can begin by typing a reputation to your gallery.

After that, click on the ‘Choose Recordsdata from Different Sources’ button to begin including photos out of your media library.

So as to add photos from the pc, click on the ‘Choose Recordsdata from Your Pc’ button.

Add media library images

Upon getting accomplished that, scroll right down to the ‘Presently in your Gallery’ part. From right here, you may configure the gallery format, add a lightbox, create a mobile-responsive gallery, and a lot extra.

For particulars, see our newbie’s information on the way to create a picture gallery in WordPress.

So as to add tags, merely click on on the pencil icon on a picture.

Click the pencil icon to edit an image

It will open the ‘Edit Metadata’ popup on the display screen, the place you may add a title, alt textual content, and caption to your picture.

You may as well add a number of media tags for a picture by separating them with a comma. As soon as you might be accomplished, don’t neglect to click on the ‘Save Metadata’ button to retailer your settings.

Add image tags

Simply repeat the method so as to add tags to different photos in your gallery.

Then, change to the ‘Tags’ tab from the left column and verify the ‘Allow Tag Filtering?’ field.

It will enable your customers to filter all of your gallery photos utilizing the tags.

Enable tag filtering

By default, Envira Gallery will create a filter for all of the tags that you’ve got added to your gallery.

Nevertheless, if you wish to embrace solely particular tags for filtering, then you may also do this by typing these tags within the ‘Tags to incorporate in Filtering’ possibility.

If you happen to go away this part clean, then all of the tags shall be filtered. Subsequent, you may also select the tag place, allow/disable the ‘All’ tags function, and type tags in response to your liking.

As soon as you might be accomplished, don’t neglect to click on the ‘Publish’ button on the high to avoid wasting your adjustments.

Choose specific tags for filtering

You and customers will now have the ability to use tags to filter photos in your web site.

Filtering by Tag within the Media Library

To filter photos utilizing tags within the WordPress dashboard, go to the Media » Envira Tags web page from the admin sidebar.

Right here, you’ll discover all of the tags that you’ve got created are listed on the left, and the variety of photos with that tag is listed within the ‘Merchandise’ column.

To seek out the pictures which have a selected tag, merely click on on the ‘Objects’ quantity for that tag.

For instance, to seek out all the pictures with the tag ‘structure’, you’ll have to click on the ‘1’ quantity within the structure tag row.

Tag filtering on WordPress dashboard

It will open all the pictures with that tag within the media library.

This manner, you don’t have to go looking by all of your photos to seek out those you might be on the lookout for.

Tag filtering image results

Filtering by Tag on the Entrance Finish

With Envira Gallery, customers visiting your web site can even filter photos based mostly on their tags.

Understand that this function will solely work in case you have checked the ‘Allow Tag Filtering?’ field for the gallery settings.

To allow this function, you should first add the gallery you created to your web site. For this, open the WordPress web page/publish within the content material editor and click on the add block ‘+’ button.

As soon as the block menu opens up, add the Envira Gallery block to the web page/publish after which choose the gallery you created from the dropdown menu within the block itself.

Add envira gallery block

Lastly, click on the ‘Replace’ or ‘Publish’ button to retailer your settings.

Now, you may go to your WordPress website to view the picture gallery, the place you’ll discover tags for filtering on the high of the pictures.

As soon as a consumer clicks on a tag, solely photos with that particular tag shall be displayed within the gallery.

Tags filter preview

Bonus: Forestall Picture Theft in WordPress

As a photographer or designer, utilizing classes and tags might help you set up and show your photos in your WordPress website. Nevertheless, it’s possible you’ll be frightened about different folks stealing your images.

That is known as picture theft, which is the unauthorized use of your photos on different web sites.

It’s a widespread drawback for photographers and graphic designers as a result of despite the fact that non-copyrighted picture theft is unethical, it’s not unlawful. This implies anybody can copy and promote your photos as their very own.

Nevertheless, there are a number of tips that you should utilize to forestall picture theft in your WordPress weblog.

The very first thing that you must do is disable right-click in your photos. It will shield your copyright and forestall customers from simply saving your photos on their desktops.

You may as well add a watermark to your photos. Many inventory pictures web sites use this technique, which lets you promote your photos whereas defending them from being stolen.

To create watermarks to your photos, you’ll have to obtain the Watermark addon from Envira Gallery.

It’s the simplest way so as to add watermarks with out utilizing any customized code. For particulars, see our tutorial on the way to routinely add a watermark to photographs in WordPress.

Add watermark to image gallery

Different steps you may take to guard your photos embrace registering your copyright, utilizing a digital signature, and together with hidden foreground layers.

To be taught extra recommendations on defending your web site from picture theft, see our newbie’s information on methods to forestall picture theft in WordPress.

We hope this text helped you discover ways to add classes and tags to the WordPress media library. You might also need to see our information on the way to discover royalty-free photos to your WordPress weblog posts and our picks for the most effective WordPress slider plugins.

If you happen to favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may as well discover us on Twitter and Fb.

댓글 달기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다