Hi,
Thank you for contacting us and I'd be happy to assist.
To achieve this, you can follow these steps:
1. You'll need these 3 pages:
- Select Category
- Select Year
- Filtered Results
Note: I'm using these names just for explanation and you're welcome to change them as needed.
2. On the first page "Select Category", you'll have a taxonomy view "View to show category selection links", which will show the list of all the terms from the category taxonomy.
Note: A taxonomy view can only be created using the classic/legacy view's editor.
In the loop of this view, you can create a link that takes you to the second page 'Select Year', along with the slug of the selected category term passed in the 'term' URL parameter, like this:
<a href="[wpv-post-url item='123']?term=[wpv-taxonomy-slug]">[wpv-taxonomy-title]</a>
Note: You'll replace '123' with the actual page ID of the 'Select Year' page.
3. On the second page 'Select Year', you'll have a post view "View to show year selection links", which will show the list of all the posts in the "Years" post type.
In the loop of this view, you can create a link that takes you to the third and final page 'Filtered Results'. This link will need to have the slug of the selected category term passed in the 'term' URL parameter (coming from the previous page) and the ID of the selected year post, in the URL parameter 'year', like this:
<a href="[wpv-post-url item='456']?term=[wpv-search-term param='term']&year=[wpv-post-id]">[wpv-post-title]</a>
Note: You'll replace '456' with the actual page ID of the 'Filtered Results' page.
Please also note, how I've used the "wpv-search-term" shortcode to get/reuse the already set URL parameter 'term' value:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-search-term
4. On the 'Filtered Results' page, you'll have a post view "View to show Leadership posts filtered by category and year" that will be set to show the "Leadership" posts.
At this point, you'll have the category slug as well as the year post ID, in the respective URL parameters and you can add query filters in this view to filter the results accordingly.
I hope this helps and please let me know if you need any further assistance with this.
regards,
Waqar