Forums › Forums › Search & Filter Pro › Data Range is not working
- This topic has 4 replies, 2 voices, and was last updated 4 years, 5 months ago by
Trevor.
-
Anonymous(Private) November 18, 2020 at 1:34 pm #266941
Hello,
I just purchased the plugin and tried to make my first search form.
I am getting the datepicker is not function error, very strange :
Uncaught TypeError: t.datepicker is not a function
at HTMLInputElement.<anonymous> (search-filter-build.min.js?ver=2.5.2:2)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at HTMLFormElement.addDatePickers (search-filter-build.min.js?ver=2.5.2:2)
at HTMLFormElement.init (search-filter-build.min.js?ver=2.5.2:2)
at HTMLFormElement.<anonymous> (search-filter-build.min.js?ver=2.5.2:2)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.e.exports [as searchAndFilter] (search-filter-build.min.js?ver=2.5.2:1)
at HTMLDocument.<anonymous> (search-filter-build.min.js?ver=2.5.2:1)The site is not live and it’s under development : http://zlostor.orion.com.mk/
And another thing, when the results are displayed, they are list of events that were happening in last 7 years, together with map of the location where they happened. There will be a map on the top of the search results and I already purchased WP Google Maps Pro plugin, is there a way I can handle a XML with results query to the map so the markers can appear on it? I will need just name, longitude, langitude and permalink to be sent to the map (they are all in the post as custom fields) as XML/CSV or whatever, is there some possibility with your plugin?
Best wishes, Klime.
Trevor(Private) November 18, 2020 at 4:41 pm #266990Your site should be loading the datepicker library:
http://zlostor.orion.com.mk/wp-includes/js/jquery/ui/datepicker.min.js
But I do not see it loading?
Do you have an optimizer plugin that might be dequeuing it? Or are you manually enqueuing WordPress assets, and maybe need to enqueue this one?
I have used that maps plugin some time ago. What I did was to run an if have_posts while … loop fetching the matching Post IDs of our search (no pagination, all posts).
For each Post ID I made a map, for which WP Google Maps Pro gives a Map ID. I store that Map ID in a custom field in the post that matches the map. Then, in the loop, I build an array with the matching Map IDs in, and use that after the while has finished to make a mashup shortcode of all the IDs, and then show the map.
Anonymous(Private) November 19, 2020 at 1:53 pm #267134Hello Trevor,
I have added a link to the script in my header : https://cdnjs.cloudflare.com/ajax/libs/datepicker/1.0.10/datepicker.min.js
But again I am getting this in console :
Uncaught TypeError: Cannot read property ‘extend’ of undefined
at datepicker.min.js:10
at datepicker.min.js:10
at datepicker.min.js:10Uncaught TypeError: t.datepicker is not a function
at HTMLInputElement.<anonymous> (search-filter-build.min.js?ver=2.5.2:2)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at HTMLFormElement.addDatePickers (search-filter-build.min.js?ver=2.5.2:2)
at HTMLFormElement.init (search-filter-build.min.js?ver=2.5.2:2)
at HTMLFormElement.<anonymous> (search-filter-build.min.js?ver=2.5.2:2)
at Function.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
at n.fn.init.e.exports [as searchAndFilter] (search-filter-build.min.js?ver=2.5.2:1)
at HTMLDocument.<anonymous> (search-filter-build.min.js?ver=2.5.2:1)Did you had any experience with this kind of errors before?
Best wishes, Klime.
-
AuthorPosts