How to Change Custom Post Type Permalinks in WordPress

0

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.

parmalink setting

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;

http://example.com/movies/the-force-awakens/

And if your custom post type is having archive enabled then the archive page URL will look like this;

http://example.com/movies/

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.

custom post type permalinks

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;

/%post_id%/

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;

http://example.com/movies/133/

Click on the save changes button to update your permalinks.

Now the single item permalink for your custom post type will looking like this:

http://example.com/movies/2016/the-force-awakens/

Example

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;

/%genre%/%post_name%/

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;

http://example.com/movies/sci-fi/the-force-awakens/

Conclusion

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.

 

Share.

About Author

Leave A Reply