Archived topic
CPT Archive - Page Header/Content Elements Not Loading
3 replies · Started by Pete on February 24, 2022
I've been working on a subdomain to redesign my site using GeneratePress. Now, I've moved everything across onto the main domain ready to go live with the new design. But I've come across a bizarre error with one of my CPT archive pages: Managers.
Here is the archive page on the dev subdomain:
https://new.boroguide.co.uk/managers/
Here is the archive page on the main domain:
https://www.boroguide.co.uk/managers/
As you might notice when logged in (credentials provided), the subdomain version is pulling in five elements (correctly) – but this is not the case on the main domain, where it is reverting to the global Page Header and omits the Page Content hook.
I cannot figure out why this is. The archive page uses the same file, the elements have all been imported like-for-like, and this is the only CPT archive page where I'm having this issue. What am I missing? Why isn't the main domain /managers/ page pulling the correct Elements?
Hi Pete,
Can you check your permalink settings?
Does/managers/point to the archive only?
Hi Ying,
I did already have a /managers/ page – just deleted this from the main domain, and it's solved the issue. No idea why this wasn't the case on the subdomain (or for other CPT archive pages). But, hey ho, all good and thanks for pointing me in the right direction.
No problem :)