Wordpress Post Categories Intersection Plugin woking with Divi-Template
For our youth football club, I'm setting up a new webpage based on Wordpress (4.9) and Divi-Template.
We have multiple teams, players, coaches and news each season. Players change the team as they get older. Every season a couple of news are produced. News are posts with categories; player profiles are posts with categories; coach profiles are posts with categories. Each team has it’s own page for the actual season (and with an archive of previous seasons) where all the profiles of the players that belong to that team should appear. On the team page is a section where all the profiles of all staff members that belong to that team should appear. The team page has a section where all the news that belong to that team should appear.
All the people in the club like players, coaches, board members, ... do have a portrait based on a post which has different categories. For example the post with the portrait of player John from team "Youth C" would this season have the categories "Season 2017-2018", "Youth C", "Player".
All the News are posts which have different categories for example a news-post for the “Youth C”-team would have the categories "News", "Team Youth C", "Season 2017-2018".
The plugin we’re looking for must pick the correct posts for the certain module. Within the Divi-Blog-Module we select the categories that this blog covers. The plugin must pick the correct posts based on the selection and only show the group of post that consists of the intersection of the chosen post categories.
So in the player section of “Youth C”-team we have a Divi-Blog-Module where we set the categories “Youth C”, “Season 2017-2018”, “Player” and the plugin is responsible that only player profiles are shown in this section where the intersection of the categories fits that only players from the actual “Youth C” team are shown.
What wordpress / Divi is doing today is that all the posts where one of the categoires is matching are shown. So in every team we would have all the players of the club as all of them get the category “Season 2017-2018”
So what the plugin will help us is that we easily can build new team pages when the new season starts and players are getting older and switch the team. Thanks to the plugin we can build up the archive of teams as the players still have the old categories from the previous season and thanks to the intersection-plugin our old team profile is still valid.
Next season our player John from above would change the team to "Youth B" and would have more categories: "Season 2017-2018", "Youth C", "Player", "Season 2018-2019", "Youth B".
What our webadmin is doing at the beginning of each season: He creates a new page based on a Divi-Library-object and in the players-section he defines the new set of categories that have to be shown in this "Blog-Module". Thanks to our "intercection-Plugin"
Further examples of categories we’re using:
- Player A (belongs to categories "Team Youth C", "Season 2017-2018", "Player")
- Coach B (belongs to categories "coach", ”player”, “1st Team”, "Team Youth C", "Team Youth D", "Association Board", “2016-2017”,”2017-2018”
- News (belong to categories like „News“, Team Youth B“, „Sponsors“, „Season 2017-2018“
On the page of our “1st Team” our youth coach B is shown in the section “players” because he fits the intersection of the categories that is set in the Divi-Blog-Module “Season 2017-2018”, “player”, 1st-Team”.
On the page of our “Youth C”-team our youth coach B is shown in the section “coaches” because he fits the intersection of the categories that is set in the Divi-Blog-Module “Season 2017-2018”, “coach”, “Youth C”.