Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Already available in both versions, see date_query documentation here.

    Thread Starter Diablo2

    (@diablo2)

    Thanks Mikko! I appreciate it!
    Im gonna have to read and try to understand this whole thing when i have the time, because i have no codex experience whatsoever.

    Ideally, this is what i would like to show on a page:

    – A search field
    – A category filter (either a dropdown or checkboxes)
    – Date range

    This way people can search within a specific category, and within a specific date range they choose.

    Plugin Author Mikko Saari

    (@msaari)

    Yeah, you can certainly do that. You just need to add some code that reads in the date range from the form and formulates a neat date_query of it. You can use relevanssi_modify_wp_query or pre_get_posts to add the date_query to the $wp_query object so that Relevanssi sees it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestion: Date Range Search’ is closed to new replies.