Beskrivelse
Den utvidelsen lar deg arkivere WordPress-innholdet ditt på samme måte som du arkiverer e-posten din.
- Avpubliser innlegg og sider uten å mptte kaste dem
- Arkivert innhold er skjult fra offentlig visning
- Kompatibel med innlegg, sider og offentlige tilpassede innleggstyper
- Ideell for nettsteder hvor enkelte typer innhold ikke er ment ¨være evigvarende
- Enkel å utvide (se nedenfor)
Over 13 språk støttet
Did you find this plugin helpful? Please consider leaving a 5-star review.
Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there before going to the plugin forum.
Ofte stilte spørsmål
-
Er ikke dette det samme som å bruke statusene Kladd eller Privat?
-
Nei, de er ikke det samme.
The Draft status is a «pre-published» status that is reserved for content that is still being worked on. You can still make changes to content marked as Draft, and you can preview your changes.
The Private status is a special kind of published status. It means the content is published, but only certain logged-in users can view it.
The Archived post status, on the other hand, is meant to be a «post-published» status. Once a post has been set to Archived it can no longer be edited or viewed.
Of course, you can always change the status back to Draft or Publish if you want to be able to edit its content again.
-
Kan jeg ikke barer kaste gammelt innhold jeg ikke lenger ønsker?
-
Yes, there is nothing wong with trashing old content. And the behavior of the Archived status is very similar to that of trashing.
However, WordPress permanently deletes trashed posts after 30 days (see here).
This is what makes the Archived post status handy. You can unpublish content without having to delete it forever.
-
Hvor er innstillingene for utvidelsen?
-
This plugin does not have a settings page. However, there are numerous hooks available in the plugin so you can customize default behaviors. Many of those hooks are listed below in this FAQ.
-
Hvorfor vises arkiverte innlegg på fronten?
-
Archived content is by default viewable for users with the any user with the
read_private_postscapability.This means if you are viewing your site while being logged in as an Editor or Administrator, you will see the archived content. However, lower user roles and non-logged-in users will not see the archived content.
You can change the default read capability by adding this hook to your theme’s
functions.phpfile or as an MU plugin:function my_aps_default_read_capability( $capability ) { $capability = 'read'; return $capability; } add_filter( 'aps_default_read_capability', 'my_aps_default_read_capability' ); -
Kan jeg gjlre arkiverte innlegg synlige for alle brukere på fronten?
-
Add these hooks to your theme’s
functions.phpfile or as an MU plugin:add_filter( 'aps_status_arg_public', '__return_true' ); add_filter( 'aps_status_arg_private', '__return_false' ); add_filter( 'aps_status_arg_exclude_from_search', '__return_false' );
-
Kan jeg endre navnet på statusen?
-
You can change the post status name, the «Archived» string, by adding the code snippet to your theme’s
functions.phpfile or as an MU plugin:add_filter( 'aps_archived_label_string', function( $label ) { $label = 'Custom Label'; // replace with your custom label return $label; });Dette vil endre navnet som brukes i admin og som etikett på innleggstittelen (se nedenfor).
-
How to modify or disable the «Archived» label added to the post title
-
Denne utvidelsen legger automatisk
Arkiverttil tittelen på arkivert innhold. (Merk at arkivert innhold kun er synlig for innloggede brukere med tillatelsenread_private_posts).Du kan endre teksten på etiketten, skilletegnet, om den vises foran eller etter tittelen, eller slå den helt av.
Follow the examples below, adding the code snippet to your theme’s
functions.phpfile or as an MU plugin.Fjern tittelen
add_filter( 'aps_title_label', '__return_false' );Plasser etiketten etter tittelen
add_filter( 'aps_title_label_before', '__return_false' );Endre skilletegnet
Skilletegnet er strengen mellom etiketten «Arkivert» og innlkeggstittelen, inkludert mellomrom. Når etiketten vises foran tittelen er skilletegnet et kolon og mellomrom:
:. Hvis etieten er plassert etter tittelen er det en bindestrek med mellomrom på hver side-.Du kan tilpasset skilletegnet med følgende filter:
add_filter( 'aps_title_separator', function( $sep ) { $sep = ' ~ '; // replace with your separator return $sep; }); -
Add these hooks to your theme’s
functions.phpfile or as an MU plugin:add_filter( 'aps_status_arg_public', '__return_false' ); add_filter( 'aps_status_arg_private', '__return_false' ); add_filter( 'aps_status_arg_show_in_admin_all_list', '__return_false' );
Please note that there is a bug in core that requires public and private to be set to false in order for the
aps_status_arg_show_in_admin_all_listto also be false. -
Kan jeg hindre at statusen Arkivert vises på visse innleggstyper?
-
Add this hook to your theme’s
functions.phpfile or as an MU plugin:function my_aps_excluded_post_types( $post_types ) { $post_types[] = 'my_custom_post_type'; return $post_types; } add_filter( 'aps_excluded_post_types', 'my_aps_excluded_post_types' ); -
My archived posts have disappeared when I deactivate the plugin!
-
Don’t worry, your content is not gone it’s just inaccessible. Unfortunately, using a custom post status like
archiveis only going to work while the plugin is active.If you have archived content and deactivate or delete this plugin, that content will disappear from view. Your content is in the database – WordPress just no longer recognizes the
post_statusbecause this plugin is not there to set this post status up.If you no longer need the plugin but want to retain your archived content:
1. Activate this plugin
2. Switch all the archived posts/pages/post types to a native post status, like ‘draft’ or ‘publish’
3. THEN deactivate/delete the plugin. -
Hjelp! Jeg trenger brukerstøtte
-
Please reach out on the Github Issues or in the WordPress support forums.
-
I have a feature request
-
Please reach out on the Github Issues or in the WordPress support forums.
Vurderinger
Bidragsytere og utviklere
«Arkiver innhold med innleggsstatusen Arkivert» er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen:
Bidragsytere“Arkiver innhold med innleggsstatusen Arkivert” har blitt oversatt til 14 språk. Takk til oversetterne for deres bidrag.
Oversett “Arkiver innhold med innleggsstatusen Arkivert” til ditt språk.
Interessert i utvikling?
Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.
Endringslogg
0.3.12 – Feb 16, 2026
- Tested up to WordPress 6.9.1
- Tested up to PHP 8.4
- Move over to composer for phpcs, phpstan, and linting checks
- Upgrade Github actions to actions/checkout@v6 running on php 8.4
0.3.11 – June 15, 2024
- Fix release and versioning issues that shipped with 0.3.10
0.3.10 – June 15, 2024
- Test & update support for WP 6.5.4
- Increase minimum supported php to 8.1, as 8.0 is end of life.
- Increase minimum WordPress version to 5.9, to align with the PHP version.
- Darken logo colors for better contrast.
- Improve German translations, h/t @mdibella-dev
0.3.9.1 – January 19, 2024
- Fixing version numbers in files, missing from 0.3.9 release.
0.3.9 – January 19, 2024
- Fix deprecated php warning on
filter_input, using native WP functions for escaping & getting query var. Fixes another issue, where archived posts couldn’t be trashed (Closes #35) - Add
aps_archived_label_stringfilter to modify the «Archived» string used for the label. - Add
aps_title_separatorandaps_title_labelto filter the post title prefix and separator, defaults to ‘Archived’ with a:separator. Disable the title label entirely by usingadd_filter( 'aps_title_prefix', '__return_false' );in yourfunctions.phpfile or custom plugin file. Closes #21 - Added
aps_title_label_beforefilter, defaults totrue– passfalseto have the label appear after the title instead of before it. This change along with the label string filter above closes #31 - Add PHPUnit tests & github actions.
- Update some comments and documentation, readmes, etc
0.3.8 – December 15, 2023
Ownership of this plugin is being transferred to Joshua David Nelson. A huge thank you to @fjarrett for his work on this plugin to this point. More info to come soon, keep an eye on the Github Repository!
This update includes:
– Tested up to WordPress 6.4.2
– Added minimum PHP of 7.4
– Bumped minimum WordPress to 5.3
– Added Github actions for deployment to WP repo
– Updated contributors in readmes
– Added PHPStan and PHPCS Github actions
0.3.7 – December 23, 2016
- Tweak: Indicate support for WordPress 4.7.
0.3.6 – April 13, 2016
- Fix: Bug causing Archived status label to always appear on edit screen.
Props fjarrett
0.3.5 – April 13, 2016
- New: Indicate support for WordPress 4.5.
- New: Added language support for
cs_CZ. - New: Add filter to allow Archived content to be editable (#12).
Props fjarrett
0.3.4 – December 14, 2015
- New: Indicate support for WordPress 4.4.
- Fix: Broken title when post format icon is present (#9).
Props fjarrett, brandbrilliance
0.3.3 – September 12, 2015
- New: Indicate support for WordPress 4.3.
Props fjarrett
0.3.2 – March 25, 2015
- Fix: Non-object warnings when
$postis null (#6).
Props fjarrett, stevethemechanic, edwin-yard
0.3.1 – January 27, 2015
- New: Added language support for
nl_NL. - Tweak: Refreshed existing language files.
- Fix: Missing argument warning on
the_titlefilter.
0.3.0 – January 26, 2015
- New: Added language support for
de_DE,es_ES,fr_FR,pt_PTandru_RU. - New: Users with the
read_private_postscapability can now view Archived content. - New: Automatically close comments and pings when content is archived.
- Tweak: Allow mulitple post states to exist alongside Archived in edit screen.
- Fix: The
aps_excluded_post_typesfilter now works as expected on Edit screens.
Props fjarrett
0.2.0 – January 21, 2015
- New: Make Archived content read-only.
Props fjarrett, pollyplummer
0.1.0 – January 4, 2015
- Opprinnelig utgivelse.
Props fjarrett



