WP Manifestindependent plugin directory
manifest / seo / archiveless

Archiveless WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress plugin to hide posts from archives (lists)

★ 8stars
14kcomposer installs
v1.2.0latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/alleyinteractive/archiveless/archive/refs/heads/main.zip

On Packagist as alleyinteractive/archiveless:

composer require alleyinteractive/archiveless
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Excludes specific WordPress posts from archives (homepage, search, date/author/term archives).

Adds <meta name='robots' content='noindex,nofollow' /> meta to the head to restrict inclusion in web searches.

Background

This plugin provides a way for content to live inside WordPress and still be accessible by a direct URL but appear hidden everywhere else. Useful for culling older content that shouldn't appear in search results because it is untimely.

Usage

By default, the plugin will prevent archiveless posts from appearing on the page. This is limited to the main query of the page. It will not affect other queries by default.

Archiveless posts can be excluded from normal queries by passing exclude_archiveless:

$query = new WP_Query(
  [
    'exclude_archiveless' => true,
    // ...
  ]
);

// Via 'pre_get_posts'.
add_action(
  'pre_get_posts',
  function ( $query ) {
    if ( special_condition() ) {
      $query->set( 'exclude_archiveless', true );
    }
  }
);

Handling archiveless posts with get_posts() calls

Queries made with get_posts() will always exclude archiveless posts by default since get_posts() sets a default post_status of publish. To include archiveless posts, you can specify the post_status of any, declare the post_status explicitly with [ 'publish', 'archiveless' ], or pass include_archiveless set to true:

// $post_ids will include archiveless posts.
$post_ids = get_posts(
  [
    'fields'              => 'ids',
    'include_archiveless' => true,
    'suppress_filters'    => false,
  ]
);

// Or declare the post_status explicitly.
$post_ids = get_posts(
  [
    'fields'              => 'ids',
    'suppress_filters'    => false,
    'post_status'         => [ 'archiveless', 'publish' ],
  ]
);

Install

The plugin includes uncompiled Javascript. You can install the plugin by tracking the main-built branch or by using a *-built tag. Otherwise, you can download the plugin and compile the assets manually:

npm install
npm run build

Changelog

Please see CHANGELOG for more information on what has changed recently.

Maintainers

This project is actively maintained by Alley Interactive. Like what you see? Come work with us.

Alley logo

License

This software is released under the terms of the GNU General Public License version 2 or any later version.

Releases

4 releases.

Tag
Published
v1.2.0 latest
Oct 22, 2025 1 year ago
May 25, 2023 3 years ago
Oct 7, 2022 4 years ago
Aug 24, 2022 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Archiveless 1.2.0 · audited by WP Registry

No security issues found.

Audited release
1.2.0
Findings
none
Worst severity
—
Content hash
57dbbdfd630b4f623100aa10…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.