I think it’ll be a little hard to change the custom post type permalinks in WordPress, however, it’s possible to change it in any situation. Most of the people can change the custom post type permalink structure but not custom post type. But you don’t have to be worry we are making it easy for you that how to change custom post type permalinks in WordPress.
Purpose of changing custom post type permalinks in WordPress
We want just to know about you that why you need to change custom post type permalinks.
What is Permalinks?
It is very useful for reading, WordPress uses SEO friendly URL structure that makes the WordPress URLs read. It also make the search engine friendly. That’s why these SEO friendly URLs are called permalinks.
Customization of permalinks could be very important and can customize them simply by visiting Setting >> Permalinks page. If you have a look here so you’ll be able to change the permalinks structure for blog posts.
Now if you are using whether custom post type or custom taxonomies on your website, then, in this case, WordPress will use default permalink structure.
e.g., if you have a custom post type that is called ‘Movies’, then its URL structure will look like this;
And if your custom post type is having archive enabled then the archive page URL will look like this;
Changing Custom Post Type Permalinks in WordPress
We are providing you step by step instruction for changing custom post type permalinks. First it’s important to install activate Custom Post Type Permalink plugin.
You need to visit the Setting>>Permalinks page after the activation and scroll down to ‘Permalink Settings for Custom Post Types’ section.
So in your custom post type, you can easily change permalinks structure of single items. Just suppose that you want to use post ID instead of post name in the URL so in this case, all you need to do is using this tag;
Now you have created changes so it important for you to click on the save changes button for storing your setting. The permalinks for a single item in your custom post type will look like this after saving the exact changes;
Click on the save changes button to update your permalinks.
Now the single item permalink for your custom post type will looking like this:
Suppose that you are using a custom taxonomy which is called “Genre” with your custom post type ‘movies’ and you want to add the custom taxonomy term into the URL. In that case, there are many tags, you will use some important tags such as this tag;
Now click on the save changes button to update your permalinks. You must save the changes after that, and the single item permalink for your custom post type will look like this;
Now you can see your custom post type permalinks in WordPress which will be changed and we hope with the help of these steps and information you can easily change the custom post type permalinks in your WorldPress.