Linked Questions

0 votes
1 answer
5k views

Custom Post Type - Rewrite slug [duplicate]

I have a custom post type (products) that I would like to change the slug for. I have a main product page that shows all product categories. After clicking on the category, it shows all products in ...
jordan's user avatar
  • 111
2 votes
0 answers
139 views

Change Permalink Structure for Custom Taxonomy [duplicate]

I have a custom taxonomy called colors, which contains the terms Red, Blue, Yellow etc. Each post has a term of the taxonomy colors linked to it. The default permalink structure for posts is /%...
Saurabh Goel's user avatar
2 votes
0 answers
55 views

Custom Permalinks for Custom Taxonomies/Post Types -> Top Level Pages not working [duplicate]

I have created a custom post type called "artists". These are categorized by the custom taxonomy "style". I do have this: ./photography/edward-example (single page with details) ./...
luke's user avatar
  • 533
64 votes
4 answers
74k views

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

I've been combing this site and google for the answer and I've come up completely empty. Basically I want to do exactly what this post asks, but I need a hierarchical taxonomy. The answer given in ...
Jeff's user avatar
  • 2,555
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
12 votes
1 answer
4k views

Shouldn't this be easy?! Custom post type/custom taxonomy permalink

So this is driving me absolutely insane. I've spend days trying to fix this and I can't work out why this is so difficult as surely this is a very common permalink structure! I looked through ...
fxfuture's user avatar
  • 1,337
7 votes
1 answer
4k views

Taxonomy, Terms, and Template Files

I have post type 'product' and hierarchical taxonomy 'types' attached to it. In this taxonomy, I have terms: 'dry-clean', 'washer', etc. With several sub terms on each terms. In my situation, I need ...
ariefbayu's user avatar
  • 1,461
1 vote
1 answer
6k views

Add %taxonomy% in custom permalink structure

By default WordPress supports %category% tag in custom permalink structure. I need to use %taxonomy in the structure. How to do that? Is there any filter available?
ron r's user avatar
  • 333
4 votes
2 answers
3k views

Custom post type taxonomies URL rewrite

What I want to achieve is an online listing catalog with a URL like this: www.example.com/drawing-tools/brand/type/material/color/ In this example, I have a custom post type named "drawing-tools" ...
Jaquis's user avatar
  • 94
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
3k views

Author url rewrite

The default author permalink is: http://domain.com/author/{username} How can I do something like this ? http://domain.com/author/{username}/songs http://domain.com/author/{username}/books http://...
Robert's user avatar
  • 11
2 votes
1 answer
5k views

Permalinks for custom post-types within custom taxonomies not found

I have tried to apply the advice offered by TheDeadMedic in this post to achieve the following URL structure: example.com/activities = a WP page example.com/activities/type-term = a custom archive ...
nigedo's user avatar
  • 23
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
2 votes
1 answer
3k views

custom post type and custom taxonomy url conflict

I have custom post type called paintings and it has a custom taxonomy called paintings_category. Currently I have this situation: example.com/paintings/ A page using page-paintings.php example....
Andy's user avatar
  • 225
1 vote
4 answers
942 views

Taxonomies in URL

I have a custom post type and two custom taxonomies associated with it. One is locations and the other is activities. How can I form the permalinks in the following format? http://mysite.com/usa/...
urok93's user avatar
  • 4,034
3 votes
3 answers
502 views

Custom permalinks

We have a custom type music. /music/ /music/post-name/ Also, we have a tag-like taxonomy genres. Its urls are: /music-genres/genre-name/ I'm trying to make urls like: /music/ /music/post-name/ /...
ilovewordpress's user avatar
1 vote
1 answer
3k views

Custom post type Permalinks with hierarchical Taxonomies

I Would use Custom Post Type and hierarchical Taxonomies with same Slug. Fortunately I found a good solution based on post_type_link filter here from TheDeadMedic. mysite.com/products/category1/...
Attila's user avatar
  • 361
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
0 votes
1 answer
1k views

Custom category URL not displaying posts

I have a custom post type with custom categories using the following: add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'products', array( ...
Rob's user avatar
  • 1,406
1 vote
1 answer
970 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
scampi's user avatar
  • 11
2 votes
1 answer
638 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
1 answer
535 views

Custom Post Type View Button in Admin Gives 400 Error

I have a custom post type, Project: /******************************* Projects Custom Post Type *******************************/ add_action( 'init', 'register_cpt_project' ); function ...
Joe's user avatar
  • 204
0 votes
1 answer
443 views

Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404

This problem has been for bugging me for days and I feel that I am close! Creating a review website, I have custom post type called review, organized in a custom hierarchical taxonomy niche. Put ...
Nicolas Telmaut's user avatar
1 vote
1 answer
281 views

How to change custom post type pemalink Hierarcy

When we set permalink as Post name and go to wordpress any default post Like "Testing 123" single page its link looks like this localhost/foo_articles/testing-123 Now i when we change our permalink ...
deemi-D-nadeem's user avatar
0 votes
0 answers
308 views

Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links

Problem (Example): I have one custom taxonomy called "portfolios". It is tied to a custom post type called "portfolio". I create a portfolios term called Animals and another called Pets. Then I create ...
Joe's user avatar
  • 68
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
0 votes
0 answers
94 views

Display results from two Custom Post Types in page template

What I have is Created a new page with slug monuments Created a template file at my theme's folder that will show all records with post_type monument. [UPDATE] 3.I forgot to mention that each custom ...
panos's user avatar
  • 186
0 votes
0 answers
82 views

Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post

I have looked around noth in StackOverflow and WP.SE. Like many before me, I just want this structure mysite.com/custom-post-type/custom-taxonomy-term/post-name Or, in other words, mysite.com/...
deathlock's user avatar
  • 546
0 votes
2 answers
50 views

Organising custom taxonomies and custom post types

I'm really struggling to organise a site that will hold quite a lot of content. This example is reduced, but contains the crux of my problem. The site features several clubs. Games club Juggling ...
Joe Fawley's user avatar