Back to Templates
This workflow is designed to maintain your blog's health and SEO by automatically moving old, published posts into a "draft" or "archive" state. This prevents outdated or low-traffic content from negatively impacting your site's performance and allows you to easily review and update them later.
publish
to draft
and automatically adds tags like archived
and old-content
for easy identification within your WordPress dashboard.{{ $now.minus({ months: 12 }).toISO() }}
which archives posts older than 12 months. You can change the number of months to fit your content strategy (e.g., 24
for two years).