Archived topic
Question on creating an archive template?
3 replies · Started by Henry on July 13, 2020
This question might be a little out of scope for this support, but here goes..
So, for a variety of reasons I'd rather hide the loop of some Custom Taxonomy I have in my GeneratePress install.
My question is twofold...
1. My Custom Taxonomy is called "countries" so am I correct in thinking that I can create a template called category-countries/php, and place that in a child folder and copy/paste over the category.php code minus the loop bit and I'm all good?
2. What would you advise to do to remove the archive post loop?
I still need the URL of the Custom Taxonomy and will place content on that page.
Hope that makes sense and any help/advice is greatly appreciated.
Thanks!
Hi there,
That's exactly what you would do. Doing so should take care of #2 automatically.
We've introduced a hook and filter which allow for the same thing in 2.5.0 so the template isn't necessary :)
Thanks Tom, so I should wait for 2.5.0 right? Do you know ETA for that?
You can definitely go the template route - nothing wrong with that.
Hoping to get an alpha for 2.5.0 before the end of the month.