Excluding or Including Post or Custom Post Type results by date
Advanced Options -> Exlude results panel
- Go to the
Advanced Options -> Exclude resultspanel. The very first option is date exclusion.
- Enable the option and choose the mode first: Exclude or Include
- Then you can optionally choose a from and to date (one of them is needed)
- Save the options, done.
What is Relative date in the options?
It was made for cases when it's not possible to use the exact date - for example you want to exclude the posts, which are over 1 year old, then using a relative date is very useful: