Divi: the easiest WordPress theme to use
Divi: The best WordPress theme of all time!
With over 901.000 downloads, Divi is the most popular WordPress theme in the world. It is complete, easy to use and comes with more than 62 free templates. [Recommended]
Do you want to find out how to create custom Permalinks in WordPress?
There are two ways to create a custom permalink (link structure) on WordPress. Often times when users talk about changing the permalink of a WordPress post, in fact they are referring to the post's slug (id). We will therefore show you precisely how to modify the slug of an article.
However, in some cases, users may want to create a completely customized URL structure. We will also show you how this is going.
But before, if you have never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog
Then back to why we are here.
Method 1. Modifying the Slug of a Permalink
In WordPress, the term slug is used to name the URL of a post, page, tag, or category. It is automatically generated by WordPress and used in the URL when you create a new item.
For example, for an article titled “The 20 Most Amazing Cafes in Manhattan,” WordPress generates the following slug: The 20 Most Amazing Cafes in Manhattan. Depending on the permalink structure you have, your post URL will look something like this:
Same thing for your pages, custom publications, tags, categories, and custom taxonomies, etc ... Now if you just want to change the permalink slug, that's pretty easy. You can do this without having to install any plugins or write any codes.
Edit the Slug of a post or page
The best way to change the slug of a URL relating to an article, page, or or any other type of post is by modifying these on the edit post screen, look just below the title and you'll see the URL with an edit button right next to it.
Clicking this edit button will allow you to edit the slug of the post. You can use alphanumeric characters and dashes in the slug.
For a URL optimized for SEO, be sure to choose a slug containing keywords that people use to search for similar content.
Modify Slug Categories and Labels
Changing the slug of categories and labels is also very easy. Just go to Articles »Categories and WordPress will show you the list of categories.
You can position your mouse on a category and click on the quick edit link. WordPress will show you the title of the category, and the slug of its URL.
You can then modify the slug and then click on the button " Update To save your changes.
The same method applies for custom labels and taxonomies.
Easily create your website with Elementor
Elementor allows you to easily create any website design with a professional look. Stop paying expensive for what you can do yourself. [Free]
2 method. Creating completely personalized Permalinks
Changing the slug of a post does not change the current structure of your permalink. What if you want to change the permalink for a single post, page, or taxonomy?
See also this article Permalink: How to customize your blog links
For example, if your URL is like this:
And you want to modify it for something like this:
Here is another example. The URL for your category in WordPress is like this:
For that particular category, you want to change the URL to something like:
In principle, this requires changing the structure of your permalink, but it would affect all the URLs of your website. Here's how you need to create a custom permalink safely without affecting the other URLs of your website.
After activation, you can just edit any post or page and change its url as you want.
You can also edit categories and labels. Just go to Articles »Categories and click the edit link below the category you want to edit.
On the edit category page, scroll down and you will see the "custom permalink" field.
You will be able to do the same for custom labels and taxonomies.
Setting up Redirections for Custom Permalinks on WordPress
When you add a custom permalink to a new post, you don't have to worry about redirects. On the other hand, if you change the URL of an already published article, then you need to configure the appropriate redirects.
Users who go to the old address of search engines and other websites will not be able to find this page unless you set up redirects.
understand How and why you need to change the structure of your permalinks by consulting this article.
Ditto for your categories and labels. You must redirect users and search engines to the new address.
Discover also some premium WordPress plugins
You can use other WordPress plugins to give a modern look and optimize the grip of your blog or website.
We offer you here some premium WordPress plugins that will help you do that.
1. Click to WhatsApp Chat
Just a click on the WhatsApp account and it will be directed directly to the mobile WhatsApp account with a default message. And if the client is on desktop or laptop, he will be redirected to WhatsApp Web.
Read also our article on 10 WordPress plugins to add a Google Maps
This plugin requires the WhatsApp number and time and day, which the website owner or support team will use to discuss. The chat button can be added on the WooCommerce product detail page, which is directly related to that product.
2. White Label Branding for WordPress Multisite
Do you use a multisite WordPress network? Are you a WordPress developer or a web designer who uses WordPress to create websites for his clients?
Have you ever wished it was easier to customize the menu and logo on each sub-website in your WordPress multisite network? Would you like to give each sub-website the ability to create their own branding? Look no further, this plugin is for you!
White Label Branding for WordPress Multisite allows you to control the branding of the main website and all sub-websites in a WordPress multisite network.
This plugin gives you the ability to create a global template that all network subsites will use. Or you can allow each sub-website in the network to create their own branding and customize their menus for the role of editor. You will also have full control over all user roles and capabilities.
3. WP GeoIP Country Redirect
The WordPress GeoIP Country Redirect plugin allows you to automatically redirect your visitors according to their country and a set of rules that you can define in the WordPress administration panel.
This plugin automatically detects the country of your visitors and can take the following steps: the redirection to a specific page of your desire.
But you can also add redirect rules for a specific page from a drop-down menu, create a website-wide redirect rule, regardless of the page / article / category it is on. acts. Mass redirection is also available there.
Moreover, it also has a logging function to see installation errors in your WordPress dashboard and the last activity like the last country redirected to which url etc ...
Other recommended resources
We also invite you to consult the resources below to go further in the grip and control of your website and blog.
- How to create a Marketplace with WordPress
- How to add a voting system to your WordPress website
- How to add CSS animations on WordPress
- How to add a widget to the header of your WordPress blog
Here ! That's it for this tutorial. We hope this article will help you create a custom permalink on WordPress.
However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation or the one on Divi: the best WordPress theme of all time.
If you have any concerns or suggestions, please let us know within Comments. But meanwhile, share this article on your different social networks.