Forums › Forums › Search & Filter Pro › Filtering by start date with post-meta (Events Manager integration)
Tagged: Events Manager, post meta, Start Date
- This topic has 4 replies, 2 voices, and was last updated 6 years ago by
Anonymous.
-
Anonymous(Private) January 31, 2019 at 9:57 am #200679
Hi Trevor,
Awhile ago I asked you about how to sort Events Manager events by date using post-meta. The problem was that EM saves their dates in the format YYYY-MM-DD, and not YYYYMMDD which Search & Filter requires. You recommended creating a dummy field and inputting the dates in the YYYYMMDD format. I have done this and the date range filtering with post-meta works.
Now my client would like to filter just by entering a start date — I cannot get this to work using the post-meta date as there seems to be only an “equal to” function and no “equal to or greater than” function.
Can you think of a way to get future dates to appear by just entering a start date?
Thanks in advance.
Jean
Trevor(Private) February 1, 2019 at 1:29 pm #200901When hitting the reset button, does it use Ajax to refresh the page? If so, I can give you a script to get around that, like this:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // so load your scripts/function here again }); }(jQuery));</script>
-
AuthorPosts