I’m legitimately curious why they suggested going to us, as it’s their theme builder that feels like the much bigger culprit here.
Template names, as per https://developer.ww.wp.xz.cn/themes/basics/template-hierarchy/, where the slug goes, needs to match the slug you registered with.
If your slug is ‘tv_show”, you’d want “archive-tv_show.php”, if created “star-ratings” as the slug, it’d be “archive-star-ratings.php” and so on.
This is assuming that their archive theme builder is using the current theme’s template files like a non Elementor-based theme would.
Don’t worry, I thought the same. I don’t think its to do with the structure. But for some reason, their templates won’t load through. They said :
The permalinks are controlled by WordPress itself and assigned by Custom Post Type.
CPT and WordPress send the data to Elementor, if Elementor doesn’t receive that data, redirect to 404 Error page.
Please report the issue to CPT support team, and check if they can help you with the issue.
At this point, my only question is if anything shows up like needed/expected when Elementor is not even used, or are you getting 404 errors then too?
Let me give you some context of my problem.
So I am creating a car dealership/vehicle rental website. The idea is that the Custom Post Types is for creating listings. I have 5 CPT ‘Sales’, ‘Car Hire’, ‘Van Hire’, ‘MPV Hire’ and ‘Minibus Hire’.
A few months ago I created the ‘Sales’ Archive using Elementor Theme Builder and setting the display conditions to show as the ‘Sales’ Archive. This works absolutely fine and displays it correctly (https://dev.haydenkracke.co.uk/bmvs/sales/)
But more recently I have been building the others out using the same methods. But for some reason when setting the display conditions it won’t show the archive on the archive URL I have created in the theme builder. (https://dev.haydenkracke.co.uk/bmvs/car-hire/).
I can’t work out why this is. I am more than happy to provide a temp login
Noted
Perhaps a dumb question, do you have any car hire posts published? Either there’s nothing o see yet literally, or something with the resulting query isn’t finding anything for some reason. We don’t directly affect queries at all, something else may be interfering here.
Yep, It’s rlly strange. Yes I have one set up and it previews it in the elementor theme builder but for some reason, it just doesn’t reach it. It’s so strange.
***UPDATE***
I have managed to get the archive to show – I just deleted the Post type and started again. All works now except that it redirects to the archive template rather than showing it on that permalink. Is that elementor’s fault?
https://dev.haydenkracke.co.uk/bmvs/car-hire
Hard to say for certain but it looks like it’s loading Elementor templates and possibly considering the resulting url as a page
Do you know what the fix could be?
Not really since I don’t know the actual source of the issue, which would take debugging/investigation.