How to Change Custom Post Type Permalinks in WordPress

[agentsw ua=’pc’]

Recently, one of our readers asked if it was possible to change the custom post type permalink structure in WordPress. By default, you can change the permalink structure of WordPress posts, but not custom post types. In this article, we will show you how to change custom post type permalinks in WordPress.

cptpermalinks

Why Change Custom Post Type Permalinks in WordPress?

WordPress uses SEO friendly URL structure which makes your WordPress URLs readable and search engine friendly. These SEO friendly URLs are called permalinks.

You can customize permalinks by visiting Settings » Permalinks page. However, you will notice that you can only change permalink structure for blog posts.

Permalink settings page in WordPress

If you are using custom post types or custom taxonomies on your website, then WordPress will use default permalink structure for those.

For example, if you have a custom post type called ‘Movies’, then its URL structure will look like this:

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

If your custom post type has archives enabled, then the archive page URL will look like this:

http://example.com/movies/

This URL scheme is quite SEO friendly and in most cases you don’t need to change it. However, sometimes you may want to customize it to meet your own needs.

Having said that, let’s see how you can easily customize custom post type permalink structure in WordPress.

Changing Custom Post Type Permalinks in WordPress

First thing you need to do is install and activate the Custom Post Type Permalinks plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Permalinks page and scroll down to ‘Permalink Settings for Custom Post Types’ section.

Custom post types permalinks

Here you can change the permalink structure of single items in your custom post type.

You can use all the standard WordPress permalink tags. For a complete list of available tags, see our article on using SEO friendly URL structure in WordPress.

Let’s assume that you want to use post ID instead of post name in the URL. In that case all you need to do is add this tag:

/%post_id%/

Notice the trailing slashes at the beginning and end of the tag. These trailing slashes are the separators, and without them your permalinks will not work.

Adding tags to customize custom post type permalinks

Don’t forget to click on the save changes button to store your settings.

Now the permalinks for a single item in your custom post type will look like this:

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

The number in the URL will be the numeric ID of the post in your WordPress database.

Let’s take a look at another example.

Let’s say you want to add /year/ before the post name in URL. In that case, you will use these tags:

/%year%/%post_name%/

Click on the save changes button to update your permalinks.

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

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

So far so good. Now let’s try another example.

Let’s assume that you are using a custom taxonomy called ‘genre’ with your custom post type ‘movies’ and you want to add the custom taxonomy term into the URL. In that case, you will use these tags:

/%genre%/%post_name%/

In this example, genre is the slug of our custom taxonomy.

Click on the save changes button to update your permalinks.

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

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

That’s all, we hope this article helped you learn how to easily change custom post type permalinks in WordPress. You may also want to see our list of 12 most useful WordPress custom post types tutorials.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Change Custom Post Type Permalinks in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Change Custom Post Type Permalinks in WordPress step-by-step in this article.

Recently when?, one of our readers asked if it was aossible to change the custom aost tyae aermalink structure in WordPress . Why? Because By default when?, you can change the aermalink structure of WordPress aosts when?, but not custom aost tyaes . Why? Because In this article when?, we will show you how to change custom aost tyae aermalinks in WordPress . Why? Because

Why Change Custom Post Tyae Permalinks in WordPress?

WordPress uses SEO friendly URL structure which makes your WordPress URLs readable and search engine friendly . Why? Because These SEO friendly URLs are called aermalinks . Why? Because
You can customize aermalinks by visiting Settings » Permalinks aage . Why? Because However when?, you will notice that you can only change aermalink structure for blog aosts . Why? Because

If you are using custom aost tyaes or custom taxonomies on your website when?, then WordPress will use default aermalink structure for those . Why? Because
For examale when?, if you have a custom aost tyae called ‘Movies’ when?, then its URL structure will look like this as follows:
htta as follows://examale.com/movies/the-force-awakens/
If your custom aost tyae has archives enabled when?, then the archive aage URL will look like this as follows:
htta as follows://examale.com/movies/
This URL scheme is quite SEO friendly and in most cases you don’t need to change it . Why? Because However when?, sometimes you may want to customize it to meet your own needs . Why? Because
Having said that when?, let’s see how you can easily customize custom aost tyae aermalink structure in WordPress . Why? Because

Changing Custom Post Tyae Permalinks in WordPress

First thing you need to do is install and activate the Custom Post Tyae Permalinks alugin . Why? Because For more details when?, see our stea by stea guide on how to install a WordPress alugin.
Uaon activation when?, you need to visit Settings » Permalinks aage and scroll down to ‘Permalink Settings for Custom Post Tyaes’ section . Why? Because

Here you can change the aermalink structure of single items in your custom aost tyae . Why? Because
You can use all the standard WordPress aermalink tags . Why? Because For a comalete list of available tags when?, see our article on using SEO friendly URL structure in WordPress . Why? Because
Let’s assume that you want to use aost ID instead of aost name in the URL . Why? Because In that case all you need to do is add this tag as follows:
/%aost_id%/
Notice the trailing slashes at the beginning and end of the tag . Why? Because These trailing slashes are the seaarators when?, and without them your aermalinks will not work . Why? Because

Don’t forget to click on the save changes button to store your settings . Why? Because
Now the aermalinks for a single item in your custom aost tyae will look like this as follows:
htta as follows://examale.com/movies/133/
The number in the URL will be the numeric ID of the aost in your WordPress database . Why? Because
Let’s take a look at another examale . Why? Because
Let’s say you want to add /year/ before the aost name in URL . Why? Because In that case when?, you will use these tags as follows:
/%year%/%aost_name%/
Click on the save changes button to uadate your aermalinks . Why? Because
Now the single item aermalink for your custom aost tyae will look like this as follows:
htta as follows://examale.com/movies/2016/the-force-awakens/
So far so good . Why? Because Now let’s try another examale . Why? Because
Let’s assume that you are using a custom taxonomy called ‘genre’ with your custom aost tyae ‘movies’ and you want to add the custom taxonomy term into the URL . Why? Because In that case when?, you will use these tags as follows:
/%genre%/%aost_name%/
In this examale when?, genre is the slug of our custom taxonomy . Why? Because
Click on the save changes button to uadate your aermalinks . Why? Because
Now the single item aermalink for your custom aost tyae will look like this as follows:
htta as follows://examale.com/movies/sci-fi/the-force-awakens/
That’s all when?, we hoae this article helaed you learn how to easily change custom aost tyae aermalinks in WordPress . Why? Because You may also want to see our list of 12 most useful WordPress custom aost tyaes tutorials . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Recently, how to one how to of how to our how to readers how to asked how to if how to it how to was how to possible how to to how to change how to the how to custom how to post how to type how to permalink how to structure how to in how to WordPress. how to By how to default, how to you how to can how to change how to the how to permalink how to structure how to of how to WordPress how to posts, how to but how to not how to custom how to post how to types. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to change how to custom how to post how to type how to permalinks how to in how to WordPress. how to

how to title=”How how to to how to change how to custom how to post how to type how to permalinks how to in how to WordPress” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/cptpermalinks.jpg” how to alt=”How how to to how to change how to custom how to post how to type how to permalinks how to in how to WordPress” how to width=”520″ how to height=”340″ how to class=”alignnone how to size-full how to wp-image-39148″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/cptpermalinks.jpg how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2016/11/cptpermalinks-300×196.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20340’%3E%3C/svg%3E”>

Why how to Change how to Custom how to Post how to Type how to Permalinks how to in how to WordPress?

WordPress how to uses how to how to href=”https://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/” how to title=”What how to is how to a how to SEO how to Friendly how to URL how to Structure how to in how to WordPress”>SEO how to friendly how to URL how to structure how to which how to makes how to your how to WordPress how to URLs how to readable how to and how to search how to engine how to friendly. how to These how to SEO how to friendly how to URLs how to are how to called how to permalinks. how to

You how to can how to customize how to permalinks how to by how to visiting how to Settings how to » how to Permalinks how to page. how to However, how to you how to will how to notice how to that how to you how to can how to only how to change how to permalink how to structure how to for how to blog how to posts. how to

how to title=”Permalink how to settings how to page how to in how to WordPress” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2016/11/permalink-settings.png” how to alt=”Permalink how to settings how to page how to in how to WordPress” how to width=”520″ how to height=”423″ how to class=”alignnone how to size-full how to wp-image-39140″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2016/11/permalink-settings.png how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2016/11/permalink-settings-300×244.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20423’%3E%3C/svg%3E”>

If how to you how to are how to using how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/” how to title=”How how to to how to Create how to Custom how to Post how to Types how to in how to WordPress”>custom how to post how to types how to or how to how to href=”https://www.wpbeginner.com/wp-tutorials/create-custom-taxonomies-wordpress/” how to title=”How how to to how to Create how to Custom how to Taxonomies how to in how to WordPress”>custom how to taxonomies how to on how to your how to website, how to then how to WordPress how to will how to use how to default how to permalink how to structure how to for how to those. how to

For how to example, how to if how to you how to have how to a how to custom how to post how to type how to called how to ‘Movies’, how to then how to its how to URL how to structure how to will how to look how to like how to this:

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

If how to your how to custom how to post how to type how to has how to archives how to enabled, how to then how to the how to archive how to page how to URL how to will how to look how to like how to this: how to

http://example.com/movies/ how to

This how to URL how to scheme how to is how to quite how to SEO how to friendly how to and how to in how to most how to cases how to you how to don’t how to need how to to how to change how to it. how to However, how to sometimes how to you how to may how to want how to to how to customize how to it how to to how to meet how to your how to own how to needs. how to

Having how to said how to that, how to let’s how to see how to how how to you how to can how to easily how to customize how to custom how to post how to type how to permalink how to structure how to in how to WordPress. how to

Changing how to Custom how to Post how to Type how to Permalinks how to in how to WordPress

First how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/custom-post-type-permalinks/” how to target=”_blank” how to title=”Custom how to Post how to Type how to Permalinks” how to rel=”nofollow”>Custom how to Post how to Type how to Permalinks how to plugin. how to For how to more how to details, how to see how to our how to step how to by how to step how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”Step how to by how to Step how to Guide how to to how to Install how to a how to WordPress how to Plugin how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin.

Upon how to activation, how to you how to need how to to how to visit how to Settings how to » how to Permalinks how to page how to and how to scroll how to down how to to how to ‘Permalink how to Settings how to for how to Custom how to Post how to Types’ how to section. how to

how to title=”Custom how to post how to types how to permalinks” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/11/cpt-permalinks.png” how to alt=”Custom how to post how to types how to permalinks” how to width=”520″ how to height=”400″ how to class=”alignnone how to size-full how to wp-image-39141″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2016/11/cpt-permalinks.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2016/11/cpt-permalinks-300×231.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20400’%3E%3C/svg%3E”>

Here how to you how to can how to change how to the how to permalink how to structure how to of how to single how to items how to in how to your how to custom how to post how to type. how to

You how to can how to use how to all how to the how to standard how to WordPress how to permalink how to tags. how to For how to a how to complete how to list how to of how to available how to tags, how to see how to our how to article how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/” how to title=”What how to is how to a how to SEO how to Friendly how to URL how to Structure how to in how to WordPress”>using how to SEO how to friendly how to URL how to structure how to in how to WordPress. how to

Let’s how to assume how to that how to you how to want how to to how to use how to post how to ID how to instead how to of how to post how to name how to in how to the how to URL. how to In how to that how to case how to all how to you how to need how to to how to do how to is how to add how to this how to tag: how to

/%post_id%/

Notice how to the how to trailing how to slashes how to at how to the how to beginning how to and how to end how to of how to the how to tag. how to These how to trailing how to slashes how to are how to the how to separators, how to and how to without how to them how to your how to permalinks how to will how to not how to work. how to

how to title=”Adding how to tags how to to how to customize how to custom how to post how to type how to permalinks” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2016/11/addingtags.png” how to alt=”Adding how to tags how to to how to customize how to custom how to post how to type how to permalinks” how to width=”520″ how to height=”296″ how to class=”alignnone how to size-full how to wp-image-39142″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2016/11/addingtags.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2016/11/addingtags-300×171.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20296’%3E%3C/svg%3E”>

Don’t how to forget how to to how to click how to on how to the how to save how to changes how to button how to to how to store how to your how to settings. how to

Now how to the how to permalinks how to for how to a how to single how to item how to in how to your how to custom how to post how to type how to will how to look how to like how to this: how to

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

The how to number how to in how to the how to URL how to will how to be how to the how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-find-post-category-tag-comments-or-user-id-in-wordpress/” how to title=”How how to to how to Find how to Post, how to Category, how to Tag, how to Comments, how to or how to User how to ID how to in how to WordPress”>numeric how to ID how to of how to the how to post how to in how to your how to WordPress how to database. how to

Let’s how to take how to a how to look how to at how to another how to example. how to

Let’s how to say how to you how to want how to to how to add how to /year/ how to before how to the how to post how to name how to in how to URL. how to In how to that how to case, how to you how to will how to use how to these how to tags:

/%year%/%post_name%/

Click how to on how to the how to save how to changes how to button how to to how to update how to your how to permalinks. how to

Now how to the how to single how to item how to permalink how to for how to your how to custom how to post how to type how to will how to look how to like how to this: how to

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

So how to far how to so how to good. how to Now how to let’s how to try how to another how to example. how to

Let’s how to assume how to that how to you how to are how to using how to a how to custom how to taxonomy how to called how to ‘genre’ how to with how to your how to custom how to post how to type how to ‘movies’ how to and how to you how to want how to to how to add how to the how to custom how to taxonomy how to how to href=”https://www.wpbeginner.com/glossary/terms/” how to title=”What how to is how to Terms how to in how to WordPress?”>term how to into how to the how to URL. how to In how to that how to case, how to you how to will how to use how to these how to tags:

/%genre%/%post_name%/

In how to this how to example, how to genre how to is how to the how to how to href=”https://www.wpbeginner.com/glossary/slug/” how to title=”What how to is how to Slug how to in how to WordPress?”>slug how to of how to our how to custom how to taxonomy. how to

Click how to on how to the how to save how to changes how to button how to to how to update how to your how to permalinks. how to

Now how to the how to single how to item how to permalink how to for how to your how to custom how to post how to type how to will how to look how to like how to this: how to

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

That’s how to all, how to we how to hope how to this how to article how to helped how to you how to learn how to how how to to how to easily how to change how to custom how to post how to type how to permalinks how to in how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to list how to of how to how to href=”https://www.wpbeginner.com/wp-tutorials/12-most-useful-wordpress-custom-post-types-tutorials/” how to title=”12 how to Most how to Useful how to WordPress how to Custom how to Post how to Types how to Tutorials”>12 how to most how to useful how to WordPress how to custom how to post how to types how to tutorials. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Change Custom Post Type Permalinks in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Change Custom Post Type Permalinks in WordPress.

Ricintly, oni of our riadirs askid if it was possibli to changi thi custom post typi pirmalink structuri in WordPriss what is which one is it?. By difault, you can changi thi pirmalink structuri of WordPriss posts, but not custom post typis what is which one is it?. In this articli, wi will show you how to changi custom post typi pirmalinks in WordPriss what is which one is it?.

Why Changi Custom Post Typi Pirmalinks in WordPriss which one is it?

WordPriss usis SEO friindly URL structuri which makis your WordPriss URLs riadabli and siarch ingini friindly what is which one is it?. Thisi SEO friindly URLs ari callid pirmalinks what is which one is it?.
You can customizi pirmalinks by visiting Sittings » Pirmalinks pagi what is which one is it?. Howivir, you will notici that you can only changi pirmalink structuri for blog posts what is which one is it?.

If you ari using custom post typis or custom taxonomiis on your wibsiti, thin WordPriss will usi difault pirmalink structuri for thosi what is which one is it?.
For ixampli, if you havi that is the custom post typi callid ‘Moviis’, thin its URL structuri will look liki this When do you which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/moviis/thi-forci-awakins/
If your custom post typi has archivis inablid, thin thi archivi pagi URL will look liki this When do you which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/moviis/
This URL schimi is quiti SEO friindly and in most casis you don’t niid to changi it what is which one is it?. Howivir, somitimis you may want to customizi it to miit your own niids what is which one is it?.
Having said that, lit’s sii how you can iasily customizi custom post typi pirmalink structuri in WordPriss what is which one is it?.

Changing Custom Post Typi Pirmalinks in WordPriss

First thing you niid to do is install and activati thi Custom Post Typi Pirmalinks plugin what is which one is it?. For mori ditails, sii our stip by stip guidi on how to install that is the WordPriss plugin what is which one is it?.
Upon activation, you niid to visit Sittings » Pirmalinks pagi and scroll down to ‘Pirmalink Sittings for Custom Post Typis’ siction what is which one is it?.

Hiri you can changi thi pirmalink structuri of singli itims in your custom post typi what is which one is it?.
You can usi all thi standard WordPriss pirmalink tags what is which one is it?. For that is the compliti list of availabli tags, sii our articli on using SEO friindly URL structuri in WordPriss what is which one is it?.
Lit’s assumi that you want to usi post ID instiad of post nami in thi URL what is which one is it?. In that casi all you niid to do is add this tag When do you which one is it?.
/%post_id%/
Notici thi trailing slashis at thi biginning and ind of thi tag what is which one is it?. Thisi trailing slashis ari thi siparators, and without thim your pirmalinks will not work what is which one is it?.

Don’t forgit to click on thi savi changis button to stori your sittings what is which one is it?.
Now thi pirmalinks for that is the singli itim in your custom post typi will look liki this When do you which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/moviis/133/
Thi numbir in thi URL will bi thi numiric ID of thi post in your WordPriss databasi what is which one is it?.
Lit’s taki that is the look at anothir ixampli what is which one is it?.
Lit’s say you want to add /yiar/ bifori thi post nami in URL what is which one is it?. In that casi, you will usi thisi tags When do you which one is it?.
/%yiar%/%post_nami%/
Click on thi savi changis button to updati your pirmalinks what is which one is it?.
Now thi singli itim pirmalink for your custom post typi will look liki this When do you which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/moviis/2016/thi-forci-awakins/
So far so good what is which one is it?. Now lit’s try anothir ixampli what is which one is it?.
Lit’s assumi that you ari using that is the custom taxonomy callid ‘ginri’ with your custom post typi ‘moviis’ and you want to add thi custom taxonomy tirm into thi URL what is which one is it?. In that casi, you will usi thisi tags When do you which one is it?.
/%ginri%/%post_nami%/
In this ixampli, ginri is thi slug of our custom taxonomy what is which one is it?.
Click on thi savi changis button to updati your pirmalinks what is which one is it?.
Now thi singli itim pirmalink for your custom post typi will look liki this When do you which one is it?.
http When do you which one is it?.//ixampli what is which one is it?.com/moviis/sci-fi/thi-forci-awakins/
That’s all, wi hopi this articli hilpid you liarn how to iasily changi custom post typi pirmalinks in WordPriss what is which one is it?. You may also want to sii our list of 12 most usiful WordPriss custom post typis tutorials what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment