Forums Forums Search & Filter Pro Limit posts to from last x days…

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #112440

    I love the plugin and ease of use. I am using it to display user generated posts (through Gravity forms), but I am wondering how I could hide posts that are older than a certain number of days from the search results. I think I’ll manually clean up old posts every now and then, but if there is an easy way to show only posts from the last x days, that would be really helpful!
    I’ve tried searching for it, but wasn’t able to find it, maybe I didn’t use the best search terms.
    Cheers! Thor

    Trevor
    #112452

    I cannot think of a simple way to do this, but you may be able to use this:

    https://www.designsandcode.com/documentation/search-filter-pro/action-filter-reference/#Query_Posts

    and use some custom PHP to create an argument to add to the query?

Viewing 2 posts - 1 through 2 (of 2 total)