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 10 years, 9 months ago by
Anonymous.
-
Anonymous(Private) December 22, 2014 at 3:58 am #9397
With 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