[Resolved] Question on creating an archive template?

Home Forums Support [Resolved] Question on creating an archive template?

Home Forums Support Question on creating an archive template?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1361918
    Henry

    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!

    #1362455
    Tom
    Lead Developer
    Lead Developer

    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 🙂

    #1362505
    Henry

    Thanks Tom, so I should wait for 2.5.0 right? Do you know ETA for that?

    #1363342
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.