這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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 · 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〉的開發相關工作。

參與者

〈Archive〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Archive〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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