Linked Questions

2 votes
0 answers
60 views

Adding Taxonomy to Permalink Structure "Custom Post Type / Taxonomy / Term" [duplicate]

First post here, just can't seem to wrap this one up, was hoping someone could point me in the right direction. I have a custom post type and taxonomy structure that creates permalinks as "custom post ...
DZ002720's user avatar
66 votes
5 answers
22k views

Custom post types, taxonomies, and permalinks

This is driving me nuts and I'm sure it's simple but nothing I search for comes up with a simple structure (everything is very complex). I have a custom post type product_listing and a custom ...
RodeoRamsey's user avatar
  • 1,707
12 votes
3 answers
35k views

How to change permalink structure for custom post type and it's taxonomies?

This is a repost of an earlier question I had, but I like to go into more details now to be able to fully solve this. So again, with (normal) posts changing the permalink is as easy as going to ...
Mark's user avatar
  • 1,019
4 votes
2 answers
11k views

How to modify URL structures in custom post types and taxonomies or terms

I am well aware that there are several posts covering the topic of customizing the permalink URL structure of custom post types, custom taxonomies, and taxonomy terms. However, none of them are real ...
Michael Ecklund's user avatar
9 votes
3 answers
7k views

WordPress Rewrite Rules for Custom Post Type and Taxonomy

I have found this place to be a good source of information in the past through a lot of Googling for the problems I have run into. My question pertains to the verbose rewrite rules WordPress uses. I ...
matt_d_rat's user avatar
0 votes
2 answers
3k views

How to add custom taxonomy in custom post type permalink?

I have a custom taxonomy called campaign and a custom post type called asset. For assets, I want to have the following permalink structure: mysite.com/<campaign_name>/<asset_name>. I have ...
sadmansh's user avatar
0 votes
2 answers
6k views

Custom Post Type with Custom Taxonomy as Category

I have created a custom post type portfolio with custom taxonomy Portfolio Category. I can create portfolio items and assign portfolio categories to them and save these custom posts. But what I need ...
rhand's user avatar
  • 352
1 vote
1 answer
3k views

How to check if last uri segment is a custom post type or taxonomy term?

After following Jeffs suggestion on this thread to create nested parent and child taxonomy terms within a permalink like... url.com/custom-post-type/taxonomy-parent/taxonomy-child/cpt-entry It ...
serks's user avatar
  • 113
5 votes
3 answers
2k views

Taxonomy term in permalink

I have a big problem. I have been banging my head on this all day long. It seems to be a stupid easy question. Possibly also with a stupid easy answer. But I can't seem to find it. What I want is ...
Jasper's user avatar
  • 51
1 vote
1 answer
8k views

Custom permalink with child taxonomy terms

This may ressemble other questions, but i'm posting my own as I couldn't find a conclusive answer that worked for me. What you need to know I have a custom post type (products), with a custom ...
Shane's user avatar
  • 831
2 votes
1 answer
5k views

Wordpress returns 404 on custom rewrite rule conflict in parameters

I have been following the steps on the answer here and it worked wonders. But my problem is on this part, on the original: add_filter('rewrite_rules_array', 'mmp_rewrite_rules'); function ...
reikyoushin's user avatar
3 votes
2 answers
3k views

Custom post type permalink structure with the category also acting as an archive

I've looked around quite a bit and haven't found anything exactly what I am looking for, so I figured I'd post here. This post and answer is very very close, but I'm having trouble adapting it to what ...
EmilyH's user avatar
  • 73
1 vote
0 answers
4k views

URL Rewrite and add_query_var not working

I know there are several topics about URL rewriting in Wordpress but none of the topics I found helped me. I want to rewrite the URL profile/?person=abc (which works fine, but isn't pretty) to ...
Fabian's user avatar
  • 11
2 votes
0 answers
2k views

Custom Post Type and Custom Taxonomy Permalinks

I'm currently working with a client's Wordpress blog that has a permalink structure set in the admin settings as "/speaks/%postname%/". This is so that all actual blog posts (post_type=>posts) have ...
Rynoceris's user avatar
4 votes
2 answers
1k views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
jpsingleton's user avatar
0 votes
0 answers
2k views

Custom post type and taxonomy same slug

I have this cpt and taxonomy: Portfolio (CPT) Portfolio Categories (Taxonomy) Now, I want to establish this permalink structure: /portfolio/portfolio-category /portfolio/portfolio-category/...
Pablo's user avatar
  • 91
2 votes
1 answer
742 views

Custom Permalink Tag breaks Pagination

Most the below work stems from a previous question / accepted answer. I'm trying to achieve the following permalink structure: /listings/ /listings/page/2/ /listings/%state%/ /listings/%state%/page/2/...
Howdy_McGee's user avatar
  • 20.6k
1 vote
2 answers
1k views

Custom post type / taxonomy rewrite archive page 2 gives 404

I've followed the code based off this and everything is working perfectly -How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-...
tim daniels's user avatar
0 votes
0 answers
1k views

Need help understanding a rewrite with multi-level taxonomy

I am trying hard to learn how to do rewrites. Not having really any understanding of regex is obviously not a good start. I have a cpt books and a taxonomy book-publishers-series. I have written the ...
Mattaton's user avatar
  • 367
0 votes
1 answer
1k views

Custom permalinks - post type - hierarchical taxonomy's

I did folowed the steps / solution from Jeff it helped me alot with he's settings, got it for about 90% working properly. But getting stuck on the post / postname. It loads now the producten/%...
Reitze Bos's user avatar
0 votes
1 answer
1k views

flush_rewrite_rules() not working on updating Settings API

I'm providing a checkbox to my plugin Settings API to enable/disable certain Rewrite rules to my plugins CPT. I want to flush the rewrite rules when the specific setting is changed. So I did the ...
Mayeenul Islam's user avatar
1 vote
1 answer
755 views

Re-write specific custom post type category URL to go to another page

I know this general question has been asked before (like here and here), but the problem is with my limited experience, I cannot get the results I need looking at other people's code. So here's my ...
Nathan's user avatar
  • 245
0 votes
1 answer
845 views

Adding language based URL structure

I'm working on a multilingual site. I already have content. I need to arrange my pages based on the language by adding a language code before page name, like: my-we-site.com/en/contact my-we-site.com/...
santa's user avatar
  • 101
2 votes
1 answer
636 views

taxonomy/category term in URL slug irrelevant for post?

so I've got a nice hierarchical system working involving custom post types and taxonomies. (see Custom post types, taxonomies, and permalinks for reference) So if I have a post with mysite.com/...
blahdyeck's user avatar
0 votes
0 answers
781 views

How can I add a "fake" parent into the permalink?

I have a custom post type of books and a taxonomy of book-publishers-series. I am trying to do a rewrite so that my urls look like: domain/publishing/books/book-publishers-series-parent/book-...
Mattaton's user avatar
  • 367
1 vote
0 answers
777 views

Custom Permalink Structure for Custom Post Type, Custom Taxonomy, Under a page

Need some help with some custom rewrite rules. I found this post How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-...
61Pixels's user avatar
  • 136
1 vote
0 answers
708 views

Hierarchical permalinks for custom post type and taxonomy

I have registered the custom post type "word" and the custom taxonomy "wordcat". Now what I want is proper hierarchical permalinks. So I've been searching the web for quite some time with no result. ...
Georges S.'s user avatar
1 vote
1 answer
517 views

Custom taxonomy in URL showing 404

Using a custom post type with custom taxonomy I'm after a custom url structure of /post-type/custom-taxonomy/article-name. I've searched and read up on Permalinks: custom post type -> custom ...
kevngibsn's user avatar
0 votes
1 answer
450 views

Wordpress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options

How do I modify the Settings > Permalinks (options-permalink.php) admin page to add more custom permalink parameters? I'd like to add additional permalink parameters to the "Optional" section for ...
corey's user avatar
  • 1
0 votes
0 answers
560 views

taxonomy term names in custom post type permalink structure

I know there has been a lot of times this question has been asked here before, but no matter what method I have tried from here, nothing seems to be working for me. I guess I am sure I am writing in ...
Patrick S's user avatar
0 votes
1 answer
512 views

Append custom parameter to taxonomy/term URI

I have a Custom Post Type named "Cars" and 2 Custom Taxonomies "Ferrari" and "Lamborghini". Each taxonomy has 2 Terms: "New" and "Used". These URIs work as expected: http://myhost/ferrari/new http://...
gyo's user avatar
  • 326
0 votes
1 answer
448 views

How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

I found this link too much helpful. This is what I code so far and got it working for all scenarios except two scenarios. register_post_type( 'article', array( 'labels' => array( ...
Noman's user avatar
  • 31
0 votes
1 answer
284 views

Help with hierarchical custom taxonomies and permalinks...almost there

I'm trying to get permalinks working with custom taxonomies and custom post types. Following the instructions here I was able to get it almost working, but one small glitch. The code to register ...
flashape's user avatar
  • 149
1 vote
0 answers
312 views

Remove slug in URL custom post type

I created two custom post type and taxonomys. For created permalinks I have been following the steps from the answer with this double slash fix. It's for first custom type. I dublicated functions ...
Aaron's user avatar
  • 111
0 votes
2 answers
312 views

Permalink for Custom Post Types

I am trying to get a custom permalink style for my custom post types... my current permalink for my post is /%postname%/ but for my custom post types, I am trying to get the custom taxonomy in the ...
Future Pocket's user avatar
1 vote
2 answers
259 views

Custom post type and taxonomy permalinks

I have a custom post type 'news' and a taxonomy 'category-news'. I would like to get this permalinks: www.domain.com/news -------------> list of all news www.domain.com/news/sport -------&...
user1443216's user avatar
1 vote
1 answer
239 views

Rewrite rules for varying nested terms of custom taxonomy

I've searched the net an the only working solution to this seems to be this post by Jeff which does everything except handle nested terms. Does anybody know how to change the rewrite based on the ...
Mark's user avatar
  • 11
1 vote
0 answers
233 views

How to get list of taxonomy slugs ordered parents>childs?

Is there an existing function in WordPress to generate a list of taxonomy slugs ordered by parents > childs > subchilds in an array? I need to generate a URL structure for my custom post type in ...
Navi's user avatar
  • 11
0 votes
0 answers
223 views

CPT url rewriting : regular posts return 404 error

I have a WP website where a created a CPT named product, which has several custom fields, including a category field. This "category" is a custom taxonomy that can take several values, let's say : ...
Fafanellu's user avatar
  • 209
1 vote
0 answers
170 views

Hierarchial Custom Post Types/Taxonomies

I've been learning Wordpress for the last few weeks and I'm now creating my own theme. I found this question which seems to be exactly what I want to do, but I can't get it working and I suspect its ...
neildeadman's user avatar
1 vote
0 answers
157 views

rewrite taxonomy-{taxonomy}-{term}.php terms

I try to figure out a rewrite problem, that is a somewhat over my head, so i ask here to find out what i can do. I use this two solutions from Jeff 1 and Milo 2, to get a full-path url for my custom ...
stevethemechanic's user avatar
3 votes
1 answer
112 views

How would I leverage custom Taxonomies in this scenario?

2 Tier research: I am building a site for a client that specializes in research travel. They offer 2 tiers of research assistance, "Standard" and "Premium". Each of those levels of service have ...
Honus Wagner's user avatar
0 votes
2 answers
97 views

WordPress Custom URLs

Based on the link maioman posted, below I have revised this question: I am having trouble getting a custom post type/taxonomy to work. I want a custom post type of Episodes, and the taxonomy for the ...
James's user avatar
  • 5
0 votes
0 answers
112 views

How can I assign multiple parents to CPT?

I have created cpt called product-1, this product qualifies for 2 categories "paints" and "coatings", however I can only select 1 parent for the post. What would be the best way to ...
yucelm's user avatar
  • 3
1 vote
1 answer
225 views

Create a permalink structure with custom taxonomies and custom post types gives 404

Based on topic How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name My code is // register the new post type ...
user3240632's user avatar
0 votes
0 answers
99 views

How do I get the correct URL?

Helo, WordPress Community! Help me, please. Created a custom post type with one taxonomy added as a category. Overwrite rules have also been created to display the complete structure of the CNC, for ...
Tolyan Dimov's user avatar
0 votes
1 answer
68 views

Multiple archives for cpt, taxonomies, terms

I have a CPT "corso" I have more taxonomy for this CPT (argomento1, argomento2, ...) I've terms on them. Example: Corsi -argomento1 --mat ---post1 --geometry ---post2 -argomento2 --grammar ---...
Simo's user avatar
  • 35
0 votes
1 answer
65 views

Wordpress permalink setting

I have a doubt. If book is my custom post type, language is my taxonomy, english is the item in taxonomy , Harrypotter is new post in book with txonomy english. Then how i get the url structure like ...
ron r's user avatar
  • 333
1 vote
0 answers
16 views

Is it possible to have dedicated page for parent/child taxonomy?

I've been working non-stop on this for the past few days. I have a post type, floorplan, which has a hierarchical taxonomy called County. Each County taxonomy has child taxonomies with the names of ...
itsseanl's user avatar