I'm looking for a scalable, best-practice way to do the following:
I need a menu to have a link to the homepage, a standard page, and a variable number of custom post type archives. Each archive must also have one standard sub-page and a category page with all the posts with a specific custom taxonomy. So the menu would look like this:
Home
About
Artist 1 Archive
About Artist 1
Custom Taxonomy
Artist 2 Archive
About Artist 2
Custom Taxonomy
And so on for all other artists.
Currently, I'm using WordPress's built-in archives for the custom post types, so they're not showing up in my menu--but I'm not adverse to just using a custom url (e.g., /artist-1/). What I'm having difficulty with is how to create the archives for the custom taxonomy. Is there a way I can set up a page template and somehow use get_query_var()
to get the post type? Or is there a more natural way to do this?
Finally, I also have to redirect the URL; the custom taxonomy's category will be yes
, but I need to change it to be accessed at portfolio
.
Thanks very much for your help.