Limit posts to from last x days…

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.