用 Google 搜尋:

無聊人的無聊故事

WordPress plugin - Posts Status

— by C.H.Weng @ 10:08 下午

Posts Status

Introducing

統計文章數量、顯示文章清單列表。

Features

  • 可以統計文章數量。
  • 可以顯示文章清單列表。

Download

目前版本:0.1

http://www.chweng.idv.tw/downloads/posts-status.zip

Installation

安裝啟用
  1. 將解壓縮出來的 posts-status.php 放到 WordPress 的 plugin 資料夾,預設為 wp-content/plugins。
  2. 在控制台中啟用這個 plugin。
輸出文章數量
  1. 開啟目前使用佈景的相關檔案,例如 sidebar.php。
  2. 在要顯示評論數量的地方,加上這個程式碼:
    <?php echo posts_count(); ?>
輸出文章清單
  1. 在 WordPress 主目錄下開一個新的 php 檔,名稱不限,只要副檔名為 php 即可。
  2. 檔案內容如下:
    <?php require(dirname(__FILE__).'/wp-blog-header.php'); ?>
    <?php get_header(); ?>
    <div id="content" class="narrowcolumn">
    <h2>所有文章列表</h2>
    <?php posts_archives(); ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  3. 存檔後即可使用,請以一般超連結開啟對應網址即可。

Version History

沒什麼意外的話,應該是不會有改版了。

  • 0.1: 初次釋出

共有 3 條評論

  1. [...] XDite 用的是無聊人的無聊故事所作的Posts Status, [...]

  2. [...] 本文轉載自Posts Status [...]

  3. [...] 到這裡下載檔案及看詳細的安裝說明。 或是直接下載檔案。 1.下載之後先解壓縮,然後將解壓縮出來的posts-status.php放到wp-content/plugins內,並且去啟動它。 2.建立一個新的檔案List_Archives.php到你使用的theme中,內容輸入: <?php [...]

發表評論

(必須輸入。)
(必須輸入,但不會公開。)
(選擇性輸入、公開資訊。)

不可以 使用 HTML 標籤;你 可以 使用 BBCode 標籤。
目前支援的標籤: b color email i img size strong u url。

Comment Preview
↑Meta↑
↑Authors↑
↓Search↓
↑Categories↑
↑Recent Posts↑
↓Most Popular Posts↓
↑Recent Comments↑
↓Recent Trackbacks↓
↓Archives↓
↓Themes↓
Powered by WordPress™
Valid RSS & Atom Feed