• Resolved Chestnutbak

    (@chestnutbak)


    I’d like to be able to show all terms within a Custom Taxonomy on an Archive page but I’m not seeing this option in the settings nor any discussion related to this.
    Like this: I am setting up a song database with and Artist and Writer Custom Taxonomy under the Custom Post Type of Songs. I’d like to be able to display all the Artists on a page with a url like this: https://example.com/artists/ instead of only showing the songs an artist is attached to like this https://example.com/artist/queen

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    WordPress doesn’t offer an all-encompassing archive for a taxonomy, like it does post types, as you’re noticing. It DOES offer archives for the specific terms though, as you’re also noticing.

    I’m sure there’s valid reasons for it, but I don’t know why for any official stance on the topic from WordPress core developers.

    That said, I know I wrote up a blog post for this topic over on pluginize.com a bunch of years back.

    https://pluginize.com/how-to-create-a-taxonomy-archive-in-wordpress/

    Basically I crafted an idea of using an “all” term that gets used on all the posts in question, giving you an archive of /artist/all/ for your example. Also included is some helper code examples to add the term to existing content in bulk instead of having to manually do that yourself.

    Thread Starter Chestnutbak

    (@chestnutbak)

    This sounds more like showing the posts within the taxonomy’s terms… I just want to show the actual Terms within the Taxonomy with links to their archives. That way I can present the users with a page of Artists and they can click through from there to the Songs made by the Artists.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ahhh, my mistake there, sorry about that.

    If you’re fine with getting into a little bit of custom coding, I believe this first link will help with achieving that.
    https://wpdevdesign.com/taxonomy-terms-list-in-wordpress/

    If you prefer a separate plugin, I believe this one is also showing what you’re wanting.
    https://www.ads-software.com/plugins/taxonomy-list/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Taxonomy Archive Page’ is closed to new replies.