I am using a custom post type (CPT)
trainings on one of my client's sites. I've also added a CPT called
sidebars, which can get linked into trainings or pages via the "relation" field type. To get an overview over all trainings, I've created a separate template "tpl-trainings.php" and added an "overview"-page, which in turn uses the template. That way, the client can add sidebars (e.g. for general contact information) and use the sidebar on different other pages, including the trainings overview page.
However, there's an issue. Since the
trainings-CPT has the url
/trainings/..., I cannot add a page with the permalink
/trainings/, but have to cheat and use
/training/. This is inconsistent and not what wordpress intended with the hierarchy. If I add an
archive-trainings.php, the archive page is obviously loaded correctly, but the client is unable to link the sidebars he needs, because the archive page does not have an own menu entry in the backend.
Does anyone have an idea on how to solve this, besides adding custom code to the themes backend menu options?