I have post types competitions and class. my adress looks like this example.com/competition/postname/ and example.com/class/postname/ for class. I have metafield in class that shows post id of competition in which this class belongs, and I need to have my permalink for class like this example.com/competition/competitionpostname/classpostname for classes.

Read more here: How to change wordpress custom post type permalink to show name of post from another custom post type?


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: