Hello and thank you in advance to anyone who can help!
I have 6 custom post types.
I use Toolset to create my custom post types, no problem.
I presently have an archive template for each one.
I would like to create 1 template to display all 6 custom post types.
I have a container with a query loop for each CPT template.
I have tried every possible way of setting the loop and conditions with out good result.
I also tried including all in the loop and using “disable query merge”, but all show in the loop.
If anyone has done this, I suppose many have, please send some advice.
Thank you Sridhar for taking time to give me some advice, and images!
Now I was able to use the same 1 template for showing 6 different custom post archives.
I did it by nesting 6 containers with their own archive loop and condition.
The only problem I have now is that pagination (for each post type) does not work.
No matter how pagination is placed or conditioned.
Anyhow I guess I will use a separate template for each post type, seems redundant though.
K.
All seems well, accept wherever I place “Pagination” in the template, the result is either correct for the first container only or does not appear at all, though both post type archives show correctly.
Please how did you rename your blocks?
I could not find info on that anywhere.
I think maybe both Query Containers being named the same “container”, Pagination is confused.
I see two “container” declarations if I try to set Pagination to a specific Query.
I forgot to say, the second Query Container is set for a different post type, but those settings reflect the first Query Container except for the post type.
I just want one template to use for all post types, creating archives for each post type only.