How to Change Custom Post Type Permalinks in WordPress

0

It is a bit difficult changing custom post type permalinks in WordPress but not impossible. 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?

Permalinks are useful for reading and WordPress uses SEO friendly URL structure that makes the WordPress URLs read and also making search engine friendly, so these SEO friendly URLs are called permalinks.

The customization of permalinks is very important and you can customize permalinks by visiting Setting >> Permalinks page. Here you notice so you can change only permalink 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. Firstly, you will need to install and also activate Customer Post Type Permalink plug-in.

After activation you have to visit Setting>>Permalinks page 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. After saving the changes the permalinks for a single item in your custom post type will look like this;

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.

After saving the changes 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