Description
Deindicizzazione Automatica Articoli keeps search engines focused on your fresh content. Posts in the categories you choose, and any custom post type filtered by its own taxonomy, are set to noindex after X days and, optionally, archived (moved to draft or private) after Y days.
The admin interface is in Italian.
Features
- Multiple categories, subcategories included
- Custom post types: for each content type choose a taxonomy and its terms, or process all content of that type
- Noindex after X days, with “noindex, follow” by default (optional nofollow)
- Works with Rank Math, Yoast SEO, or WordPress core robots when no SEO plugin is active
- Archive mode: change post status to draft or private after Y days
- Each post is processed once: no repeated emails, accurate counters
- Email notifications with placeholders (
{post_titles},{category},{days}), sent only when there is something new - Activity log stored in the database (last 200 runs), downloadable from the admin
- Dashboard widget for administrators with stats and next scheduled run
- Author filter: include or exclude specific authors
- Dry-run mode to test the configuration without changing posts
- Configurable schedule: hourly, daily or weekly
- Optional “scaduto” (expired) tag on old posts
- Sitemap cache refresh for Rank Math and Yoast SEO
- Large sites friendly: posts are processed in batches
- Preview of the next run and a “Run now” button
- Exclude single posts from the editor sidebar box
- Restore a post: original robots settings back, post republished if archived
- WP-CLI commands:
wp deindex status|preview|run|restore|exclude|include|list
Developer hooks
icrea_deindex_post_types– post types to process (default: the ones configured in the settings; a type added here without its own settings uses the post categories)icrea_deindex_batch_size– posts processed per run for each action (default 200)icrea_deindex_query_args– filter the WP_Query arguments (one query per post type, passed as 4th argument)icrea_deindex_terms_limit– terms listed per taxonomy in the settings (default 1000)icrea_deindex_log_limit– number of log entries kept (default 200)icrea_deindex_after_run– action fired after each run with a summaryicrea_deindex_post_restored– action fired after a post is restoredicrea_deindex_capability– capability required to manage the plugin (defaultmanage_options)
Installation
- Upload the plugin to
/wp-content/plugins/or install it from the Plugins screen. - Activate it.
- Go to Deindex Articoli in the admin menu.
- Choose the content to process (post types with their categories or taxonomies) and set the number of days.
- Optional: enable dry-run first to check what would be processed.
FAQ
Which SEO plugins are supported?
Rank Math and Yoast SEO. The plugin writes the noindex setting for both, so it stays in place if you switch SEO plugin. Without an SEO plugin, the noindex is added through WordPress core robots meta tag.
Why “noindex, follow” instead of “noindex, nofollow”?
With “follow” search engines keep following the internal links of old posts, so link equity still flows to the rest of the site. You can enable nofollow in the settings if you need it.
What does archive mode do?
After the configured number of days, published posts in the selected categories are moved to draft or private, so they are no longer publicly visible.
How does dry-run work?
The plugin finds the posts it would process, writes the log and sends the email, but does not change any post.
Does it work with custom post types?
Yes. In the settings every public content type is listed: tick it, then choose which taxonomy to filter by (categories, tags or a custom taxonomy, child terms included) and select the terms, or choose “Tutti i contenuti” to process every item of that type. Use it carefully on types like WooCommerce products.
How do I keep a post indexed?
Open the post and tick “Escludi dalla deindicizzazione automatica” in the plugin box, or click “Escludi” in the preview on the Articoli tab. Excluded posts are never noindexed or archived.
Can I undo the noindex on a post?
Yes. Use “Ripristina indicizzazione” in the post editor box, in the posts list or on the Articoli tab, or run wp deindex restore <id>. The plugin puts back the robots settings the post had before, republishes it if it was archived, removes the “scaduto” tag it added and excludes the post from future runs.
I updated from 2.3 or earlier: what changes?
Versions up to 2.3.1 saved the Rank Math robots setting in a format Rank Math could not read, so posts stayed indexed. Version 2.4.0 cleans those values up on update and applies the noindex correctly at the next run. Your settings are migrated automatically, and the old log file in the uploads folder is moved into the database and deleted.
Changelog
2.6.0
- New: custom post type support. For each public content type choose the taxonomy to filter by (categories, tags or custom taxonomies, child terms included) and its terms, or process all content of the type.
- New: preview, log, email
{category}placeholder and WP-CLI show the content type. - Improved: the “scaduto” tag is added only to types that support tags.
- Improved: processed or excluded content keeps its editor box and restore action even if its type is removed from the settings.
- Settings are migrated automatically: the selected categories become the “Articoli” configuration.
2.5.0
- New: Articoli tab with a preview of the next run, processed posts and excluded posts.
- New: “Run now” button.
- New: exclude single posts (editor box, preview, WP-CLI).
- New: restore a post. The original robots settings are saved before the noindex and put back on restore; archived posts are republished and the “scaduto” tag added by the plugin is removed.
- New: WP-CLI commands
wp deindex status|preview|run|restore|exclude|include|list. - New:
icrea_deindex_capabilityfilter andicrea_deindex_post_restoredaction. - Improved: denied admin actions return HTTP 403.
2.4.0
- Fix: the Rank Math noindex was saved double-serialized and ignored by Rank Math, so posts were never actually noindexed. Broken values are cleaned up on update.
- Fix: each post is now processed only once. Before, every run reprocessed all old posts, sending the same email every hour and inflating the counter.
- Fix: possible fatal error with PHP 8 during the sitemap refresh.
- Fix: the activity log was a public file in the uploads folder. It is now stored in the database (last 200 runs) and the old file is removed.
- Fix: the dashboard widget was visible to every logged-in user. It is now shown to administrators only.
- Fix: settings are validated (schedule, archive status, author mode, emails, days).
- New: Yoast SEO noindex support, plus WordPress core robots fallback when no SEO plugin is active.
- New: “noindex, follow” by default, with an optional nofollow setting.
- New: subcategories are included; categories are stored by ID, so renaming a slug no longer breaks the configuration.
- New: batch processing for large sites, uninstall cleanup, “Settings” link in the plugins list.
- Improved: translatable strings, admin CSS enqueued properly, settings saved through admin-post with nonce and capability checks.
- Requires WordPress 5.7 or later.
2.3.1
- First WordPress.org release of the 2.3 features
- Tested up to WordPress 7.1
2.3
- Multi-category support
- Archive mode (post status change)
- Admin log page
- Customizable emails with placeholders
- Sitemap regeneration option
- Dry-run mode
- Author filter
- Dashboard widget
- Configurable cron schedule
- “Scaduto” tag option
2.2
- Full refactoring for WordPress.org approval