- This topic has 1 reply, 2 voices, and was last updated 8 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Limit posts to from last x days…
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
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?