Envira Gallery Blog

Digital Photography Tips, Tutorials and Resources

How to Customize Permalinks in WordPress

How to Customize Permalinks in WordPress

Last updated on Apr 6, 2017 by Waseem Abbas

Do you want to customize your permalinks? Having a good URL structure plays an important role in your search engine rankings. In this article, we will share how to customize permalinks in WordPress.

By default, WordPress allows you to customize the permalink structure for your entire website. You can simply go to Settings » Permalinks and pick a URL structure for your posts, pages, and other post types.

Permalink Structure

Having said that, every time you change the permalink structure, it will affect all of the pages and posts on your website. Sometimes, you may want to customize the permalink for one particular page, post, category or tag.

Lets take a look at a few options for customizing your permalinks.

Changing Slug for Pages and Posts

You may know that all pages and posts have a string of text that is generated automatically by WordPress when you add a new item. It is known as a post “slug”. In this example below, the slug is the part of the URL that reads, “my-photos”.

Slug URL

This slug is dependent on the permalink structure that you selected in the Permalink settings.

If you want to edit or change the slug for a single page or post, then you can do it by pressing the Edit button next to the URL on the Edit Post screen.

Edit Slug

After editing the slug, make sure to update the post or page to save your changes.

Changing Slug for Categories and Tags

To change the slug for categories, you should go to Posts » Categories, and it will show all the categories.

Quick Edit

Simply move your mouse to the category and it will show you the option of Quick Edit. Click on it and change the slug for the category.

Update Category

Once you are done, make sure to click on the Update Category button.

Similarly, you can also change the slug for tags by going to Posts » Tags and editing the tags.

Customizing a Single Permalink

In the above examples, you changed the slug for individual posts, pages, categories or tags. However, the URL structure remained unchanged.

To completely customize the permalink structure for just one single URL, you’ll need to take help from a WordPress plugin.

First thing you need to do is go to Plugins » Add New. In the search bar, you should type Custom Permalinks and press the Enter key.

Search Plugin

You need to click on the Install Now button to install the plugin.

Install Plugin

In the next window, click on the Activate Plugin link to activate this plugin.

Activate Plugin

Upon activating the plugin, you can go to your Posts or Pages and edit any item to change the URL or permalink structure of a single page or post.

Post Custom Link

You can also go to Posts » Categories or Posts » Tags. Once you click on the Edit button, it will show you the custom permalink field.

Category Custom link

You can repeat the same process for taxonomies.

Keep in mind, posts, pages, categories, tags and taxonomies that are ranking on search engines will need to be redirected to your new URL after you make the change. To learn more, check out this guide on creating redirects in WordPress.

Creating Unique Permalinks for Images

When you upload an image, WordPress automatically generates a URL for it. This URL will follow the standard permalink structure from your WordPress settings.

To create a unique URL for images in WordPress, you’ll need the Envira Gallery plugin.

Simply install and activate Envira Gallery. You need Envira’s Deeplinking Addon to create unique URLs for WordPress images. (To access this addon, you must have Envira’s Pro or Ultimate license.)

Go to Envira Gallery » Addons to install and activate the Deeplinking addon.

Deeplinking Addon

After activating the addon, you can go to Envira Gallery and edit the image gallery where you want to create unique permalinks for your images.

Enable Gallery Deeplinks

In the config settings, you need to check the box next to “Enable Deeplinking” to create unique URLs. To learn more, check out our guide on the importance of deeplinking and how to create unique URLs for images in WordPress.

We hope this article has helped you to learn how to customize permalinks in WordPress. You may also want to check out our guide on how to create a unique page URL for your WordPress gallery.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.

Using WordPress and want to get Envira Gallery free?

Envira Gallery helps photographers create beautiful photo and video galleries in just a few clicks so that they can showcase and sell their work.


  1. Hi! Just to add, if you would like to change the permalink to an image, you could very simply edit the image, choose “screen options” on the top right corner, enable “slug”. Click “save”. Refresh the page and there should be a “slug” field that appears at the bottom. You will then be able to change the permalink via the slug option below.

  2. Hello

    When using Envira tags I noticed that when I for exemple choose to show all images with the ‘Acrylic’ tag in a gallery it shiws this type of URL-ending:


    How can I change that in order to just have here /acrylic as an URL-ending for exemple ?



    1. Hi Julien,

      Thanks for your question! All you need to do is change your gallery (on the config tab) from automatic to any column count. That should fix the issue. Please let us know if you need any more help!

      1. Worked thanks 🙂

        Besides, to change the layout and style of the tag names to choose on the page, what is the best solution you would advice, adding custom CSS by using the browser inspector tool?


Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.