I have multiple custom post types and all of them have to have their own "homepage". The url of this homepage is very important and must be the same with part of the url of the individual posts. For example:
example.com/custom-post-type/ <- the homepage for this custom post type example.com/custom-post-type/title-for-a-post/ <- show the page for a post in that custom post.
The issue is that I am getting url conflicts and wp does not run the right templates. I cannot have an empty url for custom-post-type/ so I tried creating a different custom post type and removed the slug. But this is also causing it to render the wrong templates.
Any idea how to approach it? Each custom post type has radically different templates and fields.