What This Workflow Does
This automation solves a common challenge for WordPress site owners: managing content lifecycle efficiently. As blogs grow older, many published posts become outdated, irrelevant, or underperforming—yet manually reviewing and archiving them is time-consuming.
The workflow automatically identifies posts meeting your archiving criteria (like age or performance metrics) and changes their status from published to draft. This maintains your content history and SEO value while cleaning up your active content library. Unlike deletion, archiving preserves all post data for potential future updates or reference.
How It Works
1. Criteria Setup
The workflow starts by defining your archiving rules—typically based on publication date (e.g., posts older than 24 months) but can also incorporate performance metrics if integrated with analytics tools.
2. WordPress Query
Using the WordPress REST API, the system queries your site for posts matching your criteria. This happens on a schedule you set (weekly/monthly recommended).
3. Status Update
Each identified post has its status changed from "published" to "draft" through API calls. The workflow can optionally notify you of changes or log them for review.
Pro tip: Start with conservative criteria (e.g., archive only very old posts) and refine based on results. Always test with a small batch first.
Who This Is For
This automation benefits:
- Blog owners with large archives of older content
- Content teams managing multiple WordPress sites
- SEO specialists optimizing site structure
- Businesses maintaining knowledge bases or documentation
What You'll Need
- A WordPress site with REST API access
- Admin credentials to generate API keys
- n8n instance (self-hosted or cloud)
- Basic understanding of WordPress post statuses
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure your WordPress API connection
- Set your archiving criteria (date range, categories, etc.)
- Test with a small batch of posts
- Schedule the workflow to run automatically
Key Benefits
Saves 5-10 hours monthly by eliminating manual content review and status updates. What typically takes days of sporadic work happens automatically.
Improves site quality by systematically retiring outdated content while preserving it for potential updates. Readers only see your most relevant material.
Maintains SEO value better than deletion. Archived posts can be updated and republished without losing backlinks or search rankings.
Creates content lifecycle management as part of your regular operations rather than an occasional cleanup project.