Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Date Filter: Current Date to Future Date

Viewing 10 posts - 1 through 10 (of 14 total)
  • ricov
    #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: Checked

    Ajax
    Load Results using Ajax: Checked
    Content Selector: Provided
    Pagination Selector: Provided

    Posts:
    Post Status: Published
    Categories – Include: Provided

    Search Form UI:
    Meta Key: Provided a Custom Field
    Meta Field: Date

    ricov
    #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
    #9466

    Hey 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

    ricov
    #10004
    This reply has been marked as private.
    Ross Moderator
    #10006

    What is the format of the date? It must be YYYYMMDD

    ricov
    #10015

    Under Search Form UI, the date input format is YYYMMDD (ACF) and my custom field (call_for_entry_deadline_date) save format is yymmdd.

    Ross Moderator
    #10017

    You mention it isn’t working anymore, so it did work for a time, but then stopped?

    ricov
    #10019
    This reply has been marked as private.
    Ross Moderator
    #10020
    This reply has been marked as private.
    ricov
    #10031
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 14 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.