Title: Archive
Author: Frank Bueltge
Published: <strong>2011 年 6 月 1 日</strong>
Last modified: 2020 年 5 月 4 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/archive.svg)

# Archive

 作者：[Frank Bueltge](https://profiles.wordpress.org/bueltge/)

[下载](https://downloads.wordpress.org/plugin/archive.zip)

 * [详情](https://cn.wordpress.org/plugins/archive/#description)
 * [评价](https://cn.wordpress.org/plugins/archive/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/archive/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/archive/#developers)

 [支持](https://wordpress.org/support/plugin/archive/)

## 描述

Archive your post types, also possible via cron; but only active via var inside 
the php-file.
 Use the shortcode [archive] to list all posts from Archive with status
publish to a page or post. The shortcode can use different params and use the follow
defaults.

    ```
    'count'         => -1, // count or -1 for all posts
    'category'      => '', // Show posts associated with certain categories.
    'tag'           => '', // Show posts associated with certain tags.
    'post_status'   => 'publish', // status or all for all posts
    'echo'          => 'true', // echo or give an array for use external
    'return_markup' => 'ul', // markup before echo title, content
    'title_markup'  => 'li', // markup before item
    'content'       => 'false', // view also content?
    'debug'         => 'false' // debug mor vor view an array
    ```

An example for use shortcode with params: `[archive count="10" content="true"]`

Also you can change the parameters to create the custom post type of the Archiv 
via the filter hook `archive_post_type_arguments`.

**Crafted by [Inpsyde](http://inpsyde.com) · Engineering the web since 2006.**

## 屏幕截图

 * [[
 * Possibility to archive on posts, WP 4.2-alpha
 * [[
 * Possibility to archive on posts, WP 3*
 * [[
 * In Archive, also possible to restore, WP 3*

## 安装

#### Requirements

 * WordPress version 3.0 and later (tested at 4.2-alpha)
 * PHP 5.3

#### Installation

 1. Unpack the download-package
 2. Upload the folder and all folder and files includes this to the `/wp-content/plugins/`
    directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Now you find a link on all post types for archive the item

#### Licence

Good news, this plugin is free for everyone! Since it’s released under the GPL3+,
you can use it free of charge on your personal or commercial blog.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Archive」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Frank Bueltge ](https://profiles.wordpress.org/bueltge/)
 *   [ Syde GmbH (formerly Inpsyde) ](https://profiles.wordpress.org/inpsyde/)

「Archive」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/archive/contributors)
为本插件所做的贡献。

[帮助将「Archive」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/archive)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/archive/)，查看[SVN仓库](https://plugins.svn.wordpress.org/archive/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/archive/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/archive/)。

## 更新日志

#### 1.0.2 (2015-04-06)

 * Fix for activation and 3 characters of unexpected output
 * Small sanitation enhancements

#### 1.0.1 (2015-03-12)

 * Fix activate, deactivate values for all new capabilities on custom post type;
   Result was an bug to see the menu item
 * Fix value on register post type
 * Code maintenance

#### 1.0.0 (2015-01-18)

 * Remove custom function to check for right post type, fixes error notice since
   WP 4.0.
 * Remove custom css, switch to Dashicon.
 * Enhance Shortcode parameters with `category` and `tag`.
 * Add filter hook `archive_post_type_arguments` to change default parameters on
   create custom post type archiv.
 * Code inspections, simplify post type and screen checks.

#### 0.0.5

 * Fix php notices

#### 0.0.4

 * add shortcode to list on frontend
 * add function to add all items to wp query, set only via var in php file

#### 0.0.3

 * small fixes on language file for better read.
 * cron on default inactive

#### 0.0.2

 * first release on wp.org

#### 0.0.1

 * Release first version

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**6 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/archive/) 和 [German](https://de.wordpress.org/plugins/archive/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/archive)
 * 标签
 * [archive](https://cn.wordpress.org/plugins/tags/archive/)[custom post type](https://cn.wordpress.org/plugins/tags/custom-post-type/)
   [post](https://cn.wordpress.org/plugins/tags/post/)
 *  [高级视图](https://cn.wordpress.org/plugins/archive/advanced/)

## 评级

 2.3 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/archive/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/archive/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/archive/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/archive/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/archive/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/archive/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/archive/reviews/)

## 贡献者

 *   [ Frank Bueltge ](https://profiles.wordpress.org/bueltge/)
 *   [ Syde GmbH (formerly Inpsyde) ](https://profiles.wordpress.org/inpsyde/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/archive/)