Looking for support? You can access the support system via your account.
- This topic has 19 replies, 3 voices, and was last updated 6 years, 8 months ago by .
You must be logged in to reply to this topic.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Multiple Date Fields in one Drop Down List
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?
Whilst we do support basic fields and simple relationship fields in ACF, we do not support the repeater field, sorry.
Ok. 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?
I made a change to the return format in the ACF field setup in the field group, to the required format (Ymd).
Could you try it now?
ok. 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.
You must be logged in to reply to this topic.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy