I'm not exactly sure of the best way to ask what I am trying to achieve, so I'm going to describe it here. If someone can identify a more succinct way to ask this, or if it's been answered in a different way, please let me know!
For example sake, I going to describe a photographer's WordPress site, where there would be a Portfolio archive page listing available taxonomies, say Nature, Landscape, and Portraits.
This Portfolio page had a grid of entries, displayed from all various Portfolio taxonomies. Above the grid, would be a navigation bar listing those taxonomies:
All | Nature | Landscape | Portraits
When one of the taxonomy menu options is clicked, the grid filters to the user selection using JavaScript. For example, when "Nature" is clicked, only Nature entries are shown and all others are invisible.
The Nature taxonomy would also have its own page, accessed via the slug: mysite.com/portfolio/nature - I do not want this page to exist.
I would like to be able to use that Nature URL above to go to the Portfolio archive page and have it filtered to the Nature entries by JavaScript when the page is ready.
Essentially, I would like the URL mysite.com/portfolio/nature to act as mysite.com/portfolio/?tax=nature - where the tax GET var would get registered in PHP (and later outputted to JavaScript) and then the parent Portfolio archive page is loaded.
I'm not looking for any help with the actual JavaScript implementation of this, I'm looking for advice for how to handle the URL rewriting(?) in WordPress.
What's the best way to achieve this? Thanks!
post
post type, or a custom type? What is the URL structure for individual portfolio posts? It would also help to see the code you use to register the taxonomy, as those arguments let you disable taxonomy archives if you're not using them.