Excluding or Including Post or Custom Post Type results by date

Advanced Options -> Exlude results panel

  1. Go to the Advanced Options -> Exclude results panel. The very first option is date exclusion.
  2. Enable the option and choose the mode first: Exclude or Include
  3. Then you can optionally choose a from and to date (one of them is needed)
  4. 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:

results matching ""

    No results matching ""