Tell us what you are trying to do?
Hi, I am a total Toolset beginner. I am rebuilding this website (the link below will link you to the page that I am trying to replicate) using WordPress and Toolset.
hidden link
The link below is the "new" page that I am having the issues with:
hidden link
I have a few custom search fields that the end-user should be able to search such as the "All Show Locations" (this search filter is working and producing results)
I am having issues figuring why the select dropdown is not filtering the "All Years" dropdown?
I have two custom fields "Start Date" and the "End Date" this is not working, I found the snippet (see below) in one of Toolset's forums to achieve the select dropdown fields. I only used the "Start Date" custom field (wpv-wpcf-start-date-location to filter the search along with the "All Shows Location" dropdown.
<div class="form-group">
<label for="wpv-wpcf-start-date-location">[wpml-string context="wpv-views"][/wpml-string]</label>
<select id="wpv_control_select_year-filter" name="year-filter" class="wpv-filter-trigger form-control">
<option value="">All Years</option>
<option value="2020">2020</option>
<option value="2019">2019</option>
<option value="2018">2018</option>
<option value="2017">2017</option>
<option value="2016">2016</option>
</select>
</div>
I am confused and I cannot figure what to do...below is the remainder of the code in the "Search and Pagination" in my show-list view section, would you kindly guide me to the right documentation or do you have any advice?
_______________________________________________________________
<div class="row">
<div class="col-md-4"></div>
<div class="col-md-4"></div>
<div class="col-md-4"></div>
</div>[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="form-group">
<label for="wpv-location"></label>
[wpv-control-post-taxonomy taxonomy="location" type="select" default_label="All Show Locations" url_param="wpv-location"]
</div>
<div class="form-group">
<label for="wpv-wpcf-start-date-location">[wpml-string context="wpv-views"][/wpml-string]</label>
<select id="wpv_control_select_year-filter" name="year-filter" class="wpv-filter-trigger form-control">
<option value="">All Years</option>
<option value="2020">2020</option>
<option value="2019">2019</option>
<option value="2018">2018</option>
<option value="2017">2017</option>
<option value="2016">2016</option>
</select>
</div>
_______________________________________________________________________________
I need to point out that since I am rebuilding this site in WordPress the post-type "Shows" has about 50 posts all created in the year 2020 (last week to be exact)..is this why my date custom fields are not producing search results say for 2019? Should I have used "post-date" instead?
Any help or guidance will be greatly appreciated.
Thanks,
Juan Vazquez