Title: Exclude year?
Last modified: April 12, 2019

---

# Exclude year?

 *  [abegreenpress](https://wordpress.org/support/users/abegreenpress/)
 * (@abegreenpress)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/exclude-year/)
 * Great plugin, I use it successfully on multiple sites.
 * However when it comes to recycling…
 * How to exclude a year?
 * How to recycle posts just month and a half in past?
 * I wrote a whole calendar to include mart 2019 and exclude mart 2018 and back,
   and it refused to understand.
 * Dude, this plugin is awesome but this made me go crazy and hateful. How can something
   be so stupid…

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [johnh10](https://wordpress.org/support/users/johnh10/)
 * (@johnh10)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/exclude-year/#post-11421490)
 * >How to exclude a year?
 * A random year? Like any year? 2011? Well you can [hook into the APS code ‘aps_recycle_query’](https://developer.wordpress.org/reference/functions/add_filter/)
   and adjust the [WP_Query arg date parameters](https://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters).
 * >How to recycle posts just month and a half in past?
 * Only recycle posts exactly 45 days ago? Hook into the code as above.
 * >I wrote a whole calendar to include mart 2019 and exclude mart 2018 and back,
   and it refused to understand.
 * I don’t understand. What is Mart?
 *  Thread Starter [abegreenpress](https://wordpress.org/support/users/abegreenpress/)
 * (@abegreenpress)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/exclude-year/#post-11422865)
 * First of all thank you for your reply.
 * So I have years old blog and I am posting a lot of posts every day.
 * Sometimes new batch of posts is not ready in time.
 * While I work on new batch I would like auto post scheduler to recycle only posts
   from last batch, which is like only half of this month and last half of last 
   month.
 * How can I enable March 2019 posts to be recycled and exclude March 2018,2017….?
 * Or in another words, how can I set it to recycle only posts 30 days in past?
 * …And that programming you posted made me feel like dying while trying to understand.
 * So is there hope?
 * Thank you.
 *  Plugin Author [johnh10](https://wordpress.org/support/users/johnh10/)
 * (@johnh10)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/exclude-year/#post-11425624)
 * Yes for customizations like that with APS you will need custom code.
    The premium
   version I’m working on will have this ability but is not available yet.
 *  Thread Starter [abegreenpress](https://wordpress.org/support/users/abegreenpress/)
 * (@abegreenpress)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/exclude-year/#post-11426495)
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude year?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/auto-post-scheduler_bfcacf.svg)
 * [Auto Post Scheduler](https://wordpress.org/plugins/auto-post-scheduler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-post-scheduler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-post-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-post-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-post-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-post-scheduler/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [abegreenpress](https://wordpress.org/support/users/abegreenpress/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/exclude-year/#post-11426495)
 * Status: not resolved