CPTui – Hierarchy
-
Hi, i’ve got a question related to CPTui:
I’m creating a website for an association that organizes different courses for different sports (basket, volley, calisthenics, ballet).
I’ve been following some tutorials – this one in particular:
Now as he does i’ve created the CPTs i need (one for each sports, so Post Basket, Post Volley etc). The problem is that each sport will need to have two different post archives, one with news and one with events (so i’ll need basket news&basket events ->under basket; volley news&volley events->under volley etc — sorry for the redundant examples but on reddit and so on i haven’t got anything useful yet).
I’ve then created a taxonomy that applies for every post type, which has two options: News or Events.
And it’s hierarchical of course.
Creating the post types and assigning their slug to the menu via custom link now poses the following problem: *there’s no archive page*, only the single post page and the url is like this: mywebsite.ext/basket/post-name, while it should be mywebsite.ext/basket/news(or events)/post-name.
What would be the correct solution? Should i build regular pages for each sports? And then if so how could i have two archive child to each sport (events and news)?
Please keep in mind that i’ll have to build a front-end dash for my clients with ACF Frontend, so the simpler the whole thing is organized the easier will be for the client to use the dash (and simpler for me to set up too).
I’d like to avoid having a dozen buttons like “add basket event” “add basket news” “edit basket event” “edit basket news” and so on for each sport.
It would be better to have just two options for each sport, like add and edit, and then somehow inside having the choice between event or news post.
I hope i’ve been clear enough, i’m really having an hard time with this lol.
Anyway many many thanks to whoever might want to help!The page I need help with: [log in to see the link]
- The topic ‘CPTui – Hierarchy’ is closed to new replies.