0

I'm sure this is possible, but I can't seem to get my head around the best way of setting this up.

We are building a website that gives each of our clients a video library page. The videos are stored in wordpress as posts in a custom post type. The clients are also set up as a custom post type, with a new post for each client. Each client page will have a listing of most/all of the video posts, and will also link through to the dedicated page for that video.

What I'm struggling with is, I want the video pages to be a child of each client page. For example, the page /client-1 would link through to a video with the url /client-1/video-1. Similarly, /client-2 would like through to a video on the url client-2/video-1.

I guess this can be done manually by re-creating a video post for each client and setting the client as a parent, but there must be a better way of doing this. I would like this to be automatic so when a new client post is created they can be assigned the relevant videos, which automatically can be accessed as children of that client.

Any ideas or signposting on this would be greatly appreciated!

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.