Title: custom fields date range search
Last modified: February 4, 2017

---

# custom fields date range search

 *  [ideconsultora](https://wordpress.org/support/users/ideconsultora/)
 * (@ideconsultora)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/)
 * Hello. I was wondering if it is posible to do a search using date range… but 
   those dates are not when the post was posted… the dates are custom fields that
   each post has… in format YYYYMMDD
 * for example.. one post might be:
 * Title: Random Event Coming up
    actual post posted on: feb. 20, 2016
 * custom field–> Event starts on: March 20, 2016 (yymmdd)
    custom field–> Event
   ends on: March 23, 2016 (yymmdd)
 * …
 * So when the user searches, they will search for future events ranging from two
   dates that are custom fields…
 * My site is in spanish… but you can view it here:
 * [http://sedetucuman.com.ar/](http://sedetucuman.com.ar/)
 * [https://wordpress.org/plugins/ultimate-wp-query-search-filter/](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7130936)
 * Since you have 2 different meta fields for start and end, you can create two 
   meta fields filters:
    for event start you can use ‘>=’ compare and for event 
   end you can use ‘<=’ compare.
 *  [Sofian777](https://wordpress.org/support/users/sofian777/)
 * (@sofian777)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131081)
 * Hello ideconsultora,
 * I see that it works on your site and it is exactly what I want as well. But I
   wonder how you even got the simple calendar selector for dates. Did you achieve
   it with this plugin and if yes how did you solve?
 * Thanks for a short feedback
 * By the way: Your site was loading for ages the first time I opened. Try it out
   on a laptop / browser which calls it for the first time to exclude caching, and
   see if there is something big loaded in the beginning. Might have been only here
   though.
 *  [Sofian777](https://wordpress.org/support/users/sofian777/)
 * (@sofian777)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131082)
 * Hm actually checking the classes it seems he used another plugin. TC.K, could
   you check his site and tell me if this could be achieved also with your plugin?
   The one he used is for me quite a no-go because the authors make themselves not
   available at all which I dont like as an attitude. I prefer donating to open 
   people as you who are supersupportive while still giving away all for free. Thanks
   a lot for supporting the WP community so amazingly.
 *  Thread Starter [ideconsultora](https://wordpress.org/support/users/ideconsultora/)
 * (@ideconsultora)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131083)
 * Hi, yes, I ended up using Search & Filter Pro for this. It was the only way I
   could get it to work by the deadline. Coding manually would have taken forever.
 * The support was slow, but actually pretty good. They really helped me out with
   a little problem I had with the results.
 * On another note, I really don’t know why the page takes so long to load at first.
   I did notice it as well but I thought it was just my slow internet connection…
   I’ll doble check the codes.
 * Thanks for your reply.
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131087)
 * [@sofian777](https://wordpress.org/support/users/sofian777/), yes it is doable
   if you have two date meta fields like the one ideconsultora have.
    However, there
   are many customization need to do though. Here are the steps you need to do: 
   1. You need to add a new display field in custom field filter. 2. your date custom
   field need to saved in unix timespan format. 3. you need add jquery-ui datapicker
   in frontend(in the form) and backend (in the post new/edit page if you create
   the meta field manually)
 * The reason I am not adding date field in the meta field is because the date field
   can be tricky due to many format can be used in the date field and for database
   queries it is best to use unix timespan. But meta field creation plugins (like
   ACF). So it is better to do it manually.
 *  [Sofian777](https://wordpress.org/support/users/sofian777/)
 * (@sofian777)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131090)
 * Uff, this is beyond my scope I guess. I used PODS to create the custom types,
   it can do posts, tax and fields so maybe it is possible. But the rest I have 
   not much clue what you speak about.
 * If you would customize this for me (and for others) would it be in a cost range
   that is not so much more than a paid plugin?
 * I am still searching and thinking, but so far your plugin is on my favorite list,
   so let me know if you are interested in a customization job and how much it would
   cost.
 *  Thread Starter [ideconsultora](https://wordpress.org/support/users/ideconsultora/)
 * (@ideconsultora)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131093)
 * it would probably be cheaper to just buy the 20 dollar Search and Filtro Pro 
   plugin.
 *  [Sofian777](https://wordpress.org/support/users/sofian777/)
 * (@sofian777)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131094)
 * True, but I am searching for a longterm solution, and all those 1year subscriptions
   are very strange for me, because you basically need to update to keep your sites
   safe, it is not only about new features. Considering this $20 sum up over the
   years, so I was thinking if a free plugin with a small initial investment might
   be a better choice.
 * Of course it depends if TC.K finds it interesting by himself to accomplish such
   a task for his plugin. Doing it just for me we would not be able to meet at a
   reasonable price. And also I found two good pro versions on codecanyon, where
   at least updates are lifetime, for 20 bucks as well, only support is extra.
 * I am in a big investigation period of all bigger filter plugins, since I prefer
   finding a solutiong that covers all my cases, instead of starting to search over
   again with the next project.
 * But for sure, from project perspective spending $20 is the best choice.
 * Could you fix your loading times?
 *  Thread Starter [ideconsultora](https://wordpress.org/support/users/ideconsultora/)
 * (@ideconsultora)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131095)
 * I understand. next time I might try codecanyon because of the lifetime updates.
 * Haven’t gotten around to the loading time problem. It will take a while, I have
   no idea what the problem is. Might be one of the many plugins I have running…
 *  Plugin Author [TC.K](https://wordpress.org/support/users/wp_dummy/)
 * (@wp_dummy)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131101)
 * [@sofian777](https://wordpress.org/support/users/sofian777/), you better off 
   use those plugin in codecanyon. I do have accept freelance jobs occasionally 
   to customize this plugin. But It will cost more than $20.
 * Actually this plugin is designed more bias to people who know coding. Because
   this plugin come with many hooks for customization (You can see why search form
   has no styling at all). But I do realize not all users know how to code. That’s
   why I tried to answer all the questions here. However when comes to customization,
   it is always involves coding. Thus, if you don’t know anything about coding, 
   it is hard for you to get what you need from this plugin.
 *  [Sofian777](https://wordpress.org/support/users/sofian777/)
 * (@sofian777)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-7131108)
 * I am into HTML and CSS a lot but no php, so I guess it is not for me, at least
   not for this case. The downside on codecanyon is that the license is valid for
   only one domain I remember now, but I might consider using different plugins,
   as yours for all non-event things, and for specific needs to get a license over
   there, I will see. I also plan to note my investigations down in a blog and will
   mention your extraordinary helpfulness, really outstanding especially for a free
   plugin.
 * Thanks so far, might get back to you with other issues once I use it on live 
   sites…

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘custom fields date range search’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ultimate-wp-query-search-filter_fcfcfc.
   svg)
 * [Ultimate WP Query Search Filter](https://wordpress.org/plugins/ultimate-wp-query-search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-wp-query-search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-wp-query-search-filter/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [Troglos](https://wordpress.org/support/users/troglos/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/custom-fields-date-range-search-1/#post-8738487)
 * Status: not resolved