I just realized that at least since version 1.2.9.9.5 my archive pages are broken.
For my archive pages I use the default template option like this: Themer > Templates > + Default > and then I select the archive for my CPT.
Also I have a general archive page that is used when there is no specific archive available.
For some reason when I view the archive in the frontend Cwicly is no longer using the archive that I created for the CPT rather than the fall back template.
(this “Template: Archive” is the fallback template. It should say “Template: CPT”)
On top of this the fallback template does not get rendered correctly resulting in a completely destroyed page.
When I create a custom template and target the archive of my CPT however it works as it should.
I tried this on three different installations and had the same result everywhere.
Step-by-step reproduction instructions:
Create a CPT with an archive
create an archive template for your CPT like this: Themer > Templates > + Default > your CPT
create a default fallback template for all archives
now visit your CPT archive and check what template is being used
It seems this only happens for archives that are created before the fallback template.
So if I would have created the fallback archive first everything would work fine.
Now that I think about it it also could be that this happened because of a WordPress update. That’s actually most certainly the cause of this issue. So I’ll just use the conditions from now on.
But can you actually connect a template to an archive? My comment was meant as a confirmation to your bug… So I’d be really interested to know how you made your connection, since mine isn’t working.
Did you create a custom template or a default template?
Your conditions target all archives. For my template that is meant for all archives (where I did not create a specific template for) I still don’t use any visibility conditions. I just create a default template:
Themer > Templates > + Default > All Archives
Now when I have a CPT archive where I don’t wont the standard template I again go to:
Themer > Templates > + Default > CPT Archive
and create the template.
What’s new now is that I also need to select the following visibility condition:
I was just testing to see if I could even see my template on an archive page.
I have never used the default templates
As far as I know, the only difference between default templates and custom templates is that the visibility conditions are preset.
So if I create a custom template that has the Show if -> Archive -> All condition, I expect it to show up in all my archives…
I believe the default templates are the ones that come with the theme or WordPress. When you create a custom one you just overwrite the default template. When you create a default template it will alter the default template that comes with the theme.
It should show up. Are there any other templates that are assigned to some of your archives?
I have turned off the visibilety conditions of my other templates, so there should be no interference?
Well, I will test this later during a clean install