I know this kind of question have already been answered, but the answers are not clear to me !!
I have some custom post types. I created them in the "wordpress " way, so i have "archive-{mycustomPostType}".php files. It's working fine.
The problem, as you know, is that there are no such pages in the back end : no archive page in the page listing. So a client cannot edit the page.
I'm using elementor, with sections or widgets that are used in many other pages. I would like to reuse them in the archive-{mycustomPostType}".php but it's not possible :
-i cannot edit archive page with elementor because there are no "archive page".
-i cannot use shortcodes to display those widgets in my archive-{mycustomPostType}".php file, because there are no shortcodes for elementor widget.
So i thought creating some page-{mycustomPostType}".php files instead, so i can hardcode my page AND also use the_content() to display elementor widgets, throught the elementor editor.
Now the problem is that as it is a page, when i visit a custom post type post, the parent is still the archive page automaticaly created by wordpress (in the breadcrumb for example) and not my page-{mycustomPostType}".php
Question : how can i simulate the normal behaviour of the combo : archive-{mycustomPostType} + custom post type post, using page templates ??
In my custom page template, i can display a loop of all related custom posts, no problem. I have my single-{mycustomPostType}.php file, and the post is displaying correctly. No problem.
But how can i connect both to have logical "parent-children" url ?