Creating custom post type relationships

Here, WordPress doesn’t allow to run URL in two way. e.g. (1) www.example.com/work/directors-cut-best-in-the-world/ (2) www.example.com/director/wes-pollitt/directors-cut-best-in-the-world/ You should decide which URL do you want to run in browser. If you want to run single URL then check this : Add category base to url in custom post type/taxonomy You can conditionally change permalink before load.

WP gives 404 error for custom post type with GET variable

Numbers work because single posts can have pagination, and there is a rewrite rule to support that. If you want to add an additional parameter after a permalink, add a rewrite endpoint. add_rewrite_endpoint( ‘show’, EP_PERMALINK ); EDIT- Here’s an internal rewrite example, assuming your custom post type slug is type1: add_rewrite_rule( ‘c/([^/]+)/([^/]+)/([^/]+)/?$’, ‘index.php?type1=$matches[1]&type2=$matches[3]’, ‘top’ );