Forums › Forums › Search & Filter Pro › Multiple Date Fields in one Drop Down List
- This topic has 19 replies, 3 voices, and was last updated 8 years, 7 months ago by
Anonymous.
-
Anonymous(Private) August 7, 2017 at 6:28 pm #124889
Hello all,
I have the full Search & Filter Pro in place using the shortcode options. My question is this. I have a custom post category set up with multiple fields introduced using ACF. I have a repeater field set up for Sale Date(s). If you are not familiar with ACF, this allows the developer to add an unlimited amount of Sale Date(s) fields and print them out on the front end within a specialize loop. My question is this, is there a way to add this repeater field as a dropdown list that pulls in all of the dates?Here is the page in question: http://acs.ccgproof.com/sheriff-sales/
Any thoughts?
Anonymous(Private) August 8, 2017 at 4:19 pm #125119Ok. Thank you for the reply. My next question now. I have separated out the fields into normal DatePicker ACF fields as seen here: http://acs.ccgproof.com/sheriff-sales/
The Sale Date(s) fields are listed as sale_date_A and sale_date_B within ACF. I have set these both up as Post Meta fields within Search & Filter Pro. They are both set up identically in the settings, however I am only able to get results from the first Date Picker through your plugin. However, if I type in the date within the normal search field at the top of the form I get the expected results.
If I switch the fields to a Dropdown List then the issue goes away and I am able to display results using both fields. But the client would prefer to have both field be datepickers.Any suggestions on that one?
Anonymous(Private) August 9, 2017 at 1:25 pm #125287ok. I went back through and if both of the search fields are set to the Post Meta and Date type then the sale_dates_B field returns no results. And just as an FYI. If I switch the order of the two date fields, then sale_dates_B works fine, but now sale_dates_A field does not return any results.
-
AuthorPosts