I want to create a custom post type relationships between two fields called ‘Work’ and ‘Director’ using Metabox. I have already created the CPTs.

This is an example of a permalink for ‘Work’ -> www.example.com/work/directors-cut-best-in-the-world/

This is an example of a permalink for ‘Director’ -> www.www.example.com/director/wes-pollitt/

What I want to achieve is where a director has one work in relation. So I want the permalink in this instance to change to www.example.com/director/wes-pollitt/directors-cut-best-in-the-world/ keeping the normal permalink for work as well.

Any ideas as to how I can achieve this.

Read more here: WordPress – Creating custom post type relationships


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: