Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the social-warfare domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home3/riturajb/public_html/technicalfundas/wp-includes/functions.php on line 6114
How To Create Custom Permalinks in Wordpress - Technical Fundas

How To Create Custom Permalinks in WordPress

Custom Permalinks

Do you want to create a custom permalink for your pages, post, categories, tags and products ? This post will show you how to create custom permalinks for your entire site.

What is a custom permalink ?

WordPress comes with a nice option for creating permalinks. Permalink is actually the URL structure of your post or page. Permalinks are important in the sense that permalinks helps to give structure to the site links.

The permalinks also helps in search engine optimization as the site is structured. This helps the search engine crawl your page quicker. There are various methods to change the permalinks in your site.  They are as follows.

1. Change the Slug part in your post or page

In WordPress the word slug refers to the URL friendly part of your posts, page, category or tags. It is automatically generated when you create a new item.  For example, a post titled “10 benefits of drinking water on an empty stomach” would generate a post slug like 10-benefits-of-drinking-water-on-an-empty-stomach depending on which permalink structure you set.

 

The URL of the post will look like

“https://naturalwellnessblog.com/2018/08/05/10-benefits-of-drinking-water-on-an-empty-stomach/”

Clicking on Edit button will allow you to change the post slug. This will help you in changing the permalink. Using a more SEO friendly permalink will be good.

2. Create Custom Permalinks.

Changing the permalink in the post will not change the structure of the permalink.

In this example the URL is

“https://naturalwellnessblog.com/2018/08/05/10-benefits-of-drinking-water-on-an-empty-stomach/”

The Permalink structure for the URL is

“https://naturalwellnessblog.com/2018/08/05/sample post/”

Suppose you do not want the year/month/day in your URL . In that scenario you can  customize the permalink

Click on Settings > Permalinks > Custom Structure to maintain your own custom permalink.

Permalinks for Categories and Tags

You can also change the permalink structure of categories and tags.

Go to Settings >Permalinks

Change category base

For example here the category base is set to  “nwb”  The URL for wellness category will appear like this.

Permalinks for Products

If you have online store you can change your permalinks too.

In this way you can customize your permalinks.  One of the main advantages of custom permalinks is that once the permalink is set the permalinks of the entire site are automatically changed. Therefore, you have to be careful while using this option of customizing permalinks.