• Resolved andesigner

    (@andesigner)


    Hi support,
    is there a way to (code included) to enable archive for custom taxonomies created with your plugin ?

    kind regards,
    Antonio.

    • This topic was modified 2 years, 1 month ago by andesigner.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you’re talking about an archive for ALL of the terms, with 1 endpoint, it’s not possible out of box. For example, if you have a taxonomy of “mustards”, and then terms like “yellow-mustard”, “dijon-mustard”, “spicey-brown”, and you visit https://www.mymustards.com/mustards/ expecting to see all the posts with any of the terms.

    Each individual example mustard type would get their own archive, https://www.mymustards.com/mustards/yellow-mustard but it would only show the posts with that specific term.

    That said, we have this documentation page that was adapted from a presently unavailable blog post, that covers this topic

    https://docs.pluginize.com/article/creating-an-all-term-taxonomy-archive/

    We also provide a zip file with the code mentioned in the docs.

    It will take some slight adjusting since it has a hardcoded term ID and taxonomy slugs

    The basic premise is creating an “all” term that gets added to all the posts in the post type, including automatic watching to help make sure none get missed, it also has a way to help auto-fill existing posts.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Enable archive for Custom taxonomy’ is closed to new replies.