Forums › Forums › Search & Filter Pro › Date Filter: Current Date to Future Date
Tagged: category, custom field, date, meta key, search results
- This topic has 13 replies, 2 voices, and was last updated 9 years, 10 months ago by Anonymous.
-
Anonymous(Private) December 15, 2014 at 3:59 am #9065
How can I filter from the user’s current date to another date in the future?
I am also having trouble getting the correct results back. It seems as if the plugin is just retrieving every single post even though I’ve tried to restrict it to a single category.
My Current settings are:
General
Search in the following post types: Posts
Results per page: 12
Auto submit form: CheckedAjax
Load Results using Ajax: Checked
Content Selector: Provided
Pagination Selector: ProvidedPosts:
Post Status: Published
Categories – Include: ProvidedSearch Form UI:
Meta Key: Provided a Custom Field
Meta Field: DateAnonymous(Private) December 22, 2014 at 3:58 am #9397With the latest update it seems like I’m getting the correct results back.
But is there a way to filter from current date to future date? In other words, I want to use the date range but not have the user enter today’s date. I only want them to have to enter the future date. Right now it seems like if I don’t enter a start date it shows me all of my posts.
Ross Moderator(Private) December 23, 2014 at 3:06 pm #9466Hey there
Are you talking about dates in post meta data/custom fields?
Basically, if you use a date field – it will return a specific date.
If you use a date range – it will return results between two dates.
However – there is a new option in S&F (with v 1.4.0) where you can add meta queries in the “settings & defaults” box – here you can choose your meta key, set the type to DATE, and then you can tick the box “current day” and use the operator
>=
which will show all posts in the future from the current day – I think this may be what you are after 🙂Thanks
Ross Moderator(Private) January 9, 2015 at 2:10 pm #10006What is the format of the date? It must be YYYYMMDD
Ross Moderator(Private) January 9, 2015 at 2:59 pm #10017You mention it isn’t working anymore, so it did work for a time, but then stopped?
-
AuthorPosts