Hi,
Hoping you can help. I have a winery client that needs a page that partners can easily download media items attributed to wines that they sell - bottle shots, tasing notes (PDF), images taken while harvesting for a particular wine/year. It’s a very big website and we need to work with what they have already. Our solution was to have a Toolset view that looped over items in the WordPress media library and used existing taxonomies. The taxonomies we have are “Wines” and “Vintages”, which I edited to also use it on the media library. When they upload media, they will additionally select the type of wine and the vintage, if it applies. Additionally, they can also choose what type of media it is, either bottle shot, tasting notes, or production photo. I have set up a new taxonomy to class the media as such.
On the page, people should be able to select a dropdown for the type of wine, the vintage year, and the type of media, and get the appropriate assets shown to download.
I’ve managed to create the view and the filter. I had to create an additional taxonomy to tick on in order to not show the entire media library on the page before any selection had been made.
My questions:
Apologies I can’t send you a live link because I’m testing this out in a local environment.
I recorded a video to accompany my questions, as I thought it would help. Please note though, the video didn’t capture the dropdowns that I click on, so you can’t see that bit: versteckter Link
1) Not all the items in the taxonomy “Media Type” are showing in the dropdown despite there being images that have that media type selected. EG “Production Photo” is selected on a couple of images, yet “Production Photo” doesn’t appear in the dropdown filter. When I googled this issue, I see a team member has had this issue before, would you be able to advise what code would need to be adjusted to make sure things uploaded with taxonomies selected show as planned? https://toolset.com/forums/topic/view-dropdown-not-showing-all-taxonomies/
2) We only want to show the current year and the year before (so the most recent, and second most recent category in the taxonomy “Vintage”. The “Vintage” taxonomy has every year since 1975, nothing in the media library is categorised into any of these dates yet and we only plan to do it for the last 2 years and moving forward. As the years progress and more media with new vintage years get added, the dropdown will get longer and longer. How can I limit what appears in the dropdown? Below is what is currently in the “Search and Pagination” field, in case it helps.
[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="filtering-options">
[wpv-control-post-taxonomy taxonomy="wine" type="select" url_param="wpv-wine" default_label="Wine"]
[wpv-control-post-taxonomy taxonomy="vintages" type="select" url_param="wpv-vintages" default_label="Vintage"]
[wpv-control-post-taxonomy taxonomy="media-type" type="select" url_param="wpv-media-type" default_label="Media Type"]
[wpv-filter-reset reset_label="Clear Filters" class="clear-filters" type="button"]
</div>
[wpv-filter-spinner container="div" position="before" spinner="versteckter Link"][wpml-string context="wpv-views"]Refreshing list...[/wpml-string][/wpv-filter-spinner]
[/wpv-filter-controls]
[wpv-filter-end]
3) Is there a way to remove the “all” selection for “Vintages” (which is the ‘nothing selected’ option), and have it default to the most recent year?
4) We had also wanted reviews, which is a type of post with the category “Reviews” to show within the mix of this media filter. These also have the wine and vintage taxonomy applied. However, I just couldn’t get it to work, so the next best solution is to have a separate section on the page showing the reviews with a filter for “wine” and “vintage” for people to select. Is it possible to have the filter from the media section also control the reviews section? So, one filter to show media and reviews with the same control so the user doesn’t have to select both?
Thank you for your help,
Jo