Digital Sovereignty for everyone

How archived posts are listed

Archived posts stay reachable at their own URLs (subject to the public setting), with the Archive Message. What changes is where they’re listed.

Listings and feeds are forced to publish

  • On the front end, every non-singular main query except search has its post_status set to publish, plus private for users with read_private_posts. That keeps archived posts out of the home page and the taxonomy, author and date archives.
  • Feeds get the same treatment, except a single post’s own feed (such as a comments feed or a venue’s iCal feed), which follows that post’s visibility, and the lh-sitemaps-general feed.
  • Search results are not filtered, and archived posts are indexed by Relevanssi when it’s active.

Post types the status doesn’t apply to

Since 3.13.0, an archive or feed that lists a single post type the archived status doesn’t apply to is left alone (is_listing_of_other_post_type()). Those post types can never hold archived posts, and many use statuses of their own that a forced publish-only list would hide. Listings that mix post types, such as the home page and taxonomy archives, are still filtered.

On LocalHero these are the types removed through lh_archive_post_status_get_applicable_post_types_filter: knowledge base entries, tasks, rosters, CRM records, letters, vouchers and competitions. Their own statuses list normally on their archives and feeds.

Member visibility statuses

lh-membership adds its restrict, confidential and logged_in statuses back to these listings, on pre_get_posts at priority 1000, after this plugin has set the status list.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.