1

I have the post types competitions and class. My URLs look like this:

http://example.com/competition/postname/

and

http://example.com/class/postname/

I have meta field in the class post type that shows the post id of the competition in which this class belongs. I need to have my permalink for class like this:

http://example.com/competition/competitionpostname/classpostname/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.