We do yearly summits, where speakers come and give talks.
I want to create a view that shows all speakers from previous years, shown in order by the most recent year they came and spoke. I also want to be able to show all talks from previous years. The main problem I'm having is the fact that some speakers have spoken multiple different years, and sometimes give the same talk, which seems to complicate ordering. I would like to have the ability to order and group by year. I'm not sure what the best long-term solution for this would be.
I had considered making a "years" taxonomy, with each year as an option, but I don't see anywhere to order posts by taxonomy. I imagine this is because taxonomy can contain multiple different values. Another option was to add a year option to custom fields, but I'm not sure what field type would work for that. Another option I had considered was to make each year a post type, and then just connect each speaker to the years that they spoke at.
I also considered having "year" be an intermediate custom field of a Speaker - Talk relationship. Or perhaps it would make most sense to create a Year -> Speaker -> Topic relationship? Ideally I would like to be able to sort topics or speakers by year.
Perhaps the simplest way to do this would be to combine these ideas? Use a custom date field for each speaker called "most recent year attended", and use that to order things, but then also use a taxonomy to be able to show posts in groups by year?
I would appreciate some guidance on which implementation would best match my desired use case, and be most future-proof.
All our current data has just been put in elementor manually. That's part of the reason I want to move everything over to Toolset, so things can be automated and templated. I had only made the "speakers" and "talks" post types just to test different options. So any configuration is available at the moment.
That's part of the reason I wanted some input on what the best use case for this would be.
My description is more of me thinking aloud about how these relationships could possibly be set up. What do you think would be the best way to organize the data and post types, to achieve what I'm describing?
How would I go about displaying speaker information using taxonomies? The speakers have pictures and bio information.
For example, if I wanted to list all the speakers for each year, how would I avoid duplicates of speakers, when they give multiple different talks each year?
> How would I go about displaying speaker information using taxonomies? The speakers have pictures and bio information.
- Just as with posts, it is also possible to add custom fields to the taxonomy terms, from WP Admin -> Toolset -> Custom Fields -> Term Fields.
> For example, if I wanted to list all the speakers for each year, how would I avoid duplicates of speakers, when they give multiple different talks each year?
- The view for this will filter the events by a particular year taxonomy term. And in each event item, you can show information about the speaker term attached to it.
To avoid/hide the duplicates, you'll need some custom CSS or JS code workaround, depending on the overall structure of the view's output. You can start a new ticket once that view is ready and we'll be able to suggest the next steps, accordingly.