Hello,
I have created a custom post type called "Episodes" along with 2 taxonomies "Shows" and "Show Categories".
Each episodes belongs to a show and each show is part of a show category (such as lifestyle, health, etc)
What I am trying to do:
On the Show page, I have already listed with a Views with all the episodes of that show. What I want is to also add a listing of all the other shows within the same show category.
So let say that show #1 is part of Health category, I want a listing of all the other shows that are also about Health to be displayed on the page of show #1 and etc.
I created a Views for listing the taxonomy "Shows" but I can't seem to filter it by the taxonomy "Show Categories" of the current show.
Here is a link of a show page so you could have an idea of what I am talking about
hidden link
I will really appreciate your help with this.
Thanks.
Hello,
What is the "Show page" you mentioned above?
Is it archive page of taxonomy "Show"?
Are you going to show posts by another taxonomy "Show Categories".
If it is, there isn't such kind of built-in feature within Toolset plugins, it needs very complicated custom codes, you will need to get all "Episodes" results from taxonomy "Show" archive page, then get all taxonomy "Show Categories" terms from those posts, then get posts by taxonomy "Show Categories" terms, then pass it to WordPress query:
https://developer.wordpress.org/reference/hooks/pre_get_posts/
And there is another issue: such kind of custom codes will conduct performance problem.
The show page is indeed an archive page. The template is build with Divi Builder and I am using the module Toolset View which by the way thank you for creating the module. So I create the Views separately and then incorporate them in the Divi template.
I don't want to show posts. I want to display a listing of the taxonomy "Show" (11 shows in this instance) that are filtered by another taxonomy "Show Categories" that is current of a show archive page being displayed on the screen.
Do you reckon that it is possible?
It is possible to add taxonomy "Show Categories" filter field into search form, you can setup a Toolset WordPress Archive for taxonomy "Show" by following our document:
https://toolset.com/course-lesson/creating-a-custom-archive-page/
Then add the taxonomy "Show Categories" filter field into search form:
https://toolset.com/course-lesson/creating-a-custom-search/#add-front-end-sorting-to-search-results
And enable option "Show only filter options that would produce results", see my screenshot show-only.JPG