Title: Reverse Order Comments
Author: Tim
Published: <strong>2007 年 3 月 20 日</strong>
Last modified: 2012 年 7 月 16 日

---

搜尋外掛

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

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

# Reverse Order Comments

 由 [Tim](https://profiles.wordpress.org/timz/) 開發

[下載](https://downloads.wordpress.org/plugin/reverse-order-comments.1.1.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/reverse-order-comments/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/reverse-order-comments/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/reverse-order-comments/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/reverse-order-comments/#developers)

 [技術支援](https://wordpress.org/support/plugin/reverse-order-comments/)

## 外掛說明

A really simple WordPress Plugin. It provides the function `ro_comments_template()`,
which allows the comments to be displayed in reverse order (thus the newest comments
first, oldest last).

## 安裝方式

 1. Install & activate the plugin.
 2. Edit your theme files and implement the new function as described in the FAQ section.

## 常見問題集

  How do I implement the plugin function in my templates?

Open the template file which should show the comments in a reverse order in your
favorite editor.
 Locate the line

    ```
    <?php comments_template(); ?>
    ```

and replace it with

    ```
    <?php if(function_exists('ro_comments_template')) ro_comments_template(); else comments_template(); ?>
    ```

**Note:**

The arguments of the function can be different in your template, for example if 
it is

    ```
    <?php comments_template('', true); ?>
    ```

change the plugin function accordingly to

  What are the files in theme-examples directory?

theme-examples/
 default (English default theme) comments-topinput.php comments.
php adapted for a guestbook tpl_guestbook.php template for a guestbook

    ```
        default_de                   (German default theme)
          comments-topinput.php      comments.php adapted for a guestbook
          tpl_gaestebuch.php         template for a guestbook
    ```

  Will it work with paged comments?

Yes, but if you use comment navigations with labels like “older” and “newer”, then
it might be puzzling for the user, as the comment order is opposite to the navigation.

In this case I suggest not to use the plugin in combination with comment-pagination
or you should change your navigation labels.

  Building a guestbook for the Kubrik theme

Precondition: comments-topinput.php and tpl_gaestebuch.php are in in your template
directory.

 1. Create a new page. Title e.g. “guestbook”
 2. Allow comments for this page
 3. Choose the template “Guestbook” for this page.

Done!

If you want the comment input fields “blogstyle” at the bottom of the page, just
change inside
 tpl_gaestebuch.php the line

    ```
    <?php if(function_exists('ro_comments_template')) ro_comments_template("/comments-topinput.php"); else comments_template(); ?>
    ```

to

    ```
    <?php if(function_exists('ro_comments_template')) ro_comments_template(); else comments_template(); ?>
    ```

  Building a guestbook for other themes

If you don’t use the Kubrik/Default theme, it is still very easy to build your own
template.
 A good template to start with is “page.php” and “single.php”. Copy “page.
php” and rename it. The line `<?php comments_template(); ?>` is important. Change
it as described above. Add a header to your new page, to tell WordPress it is a 
template.

e.g.

    ```
    <?php
    /*
    Template Name: Guestbook
    */
    ?>
    ```

[Page Template Documentation](https://codex.wordpress.org/Pages#Creating_your_own_Page_Templates)

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Reverse Order Comments〉的開發相關工作。

參與者

 *   [ Tim ](https://profiles.wordpress.org/timz/)

[將〈Reverse Order Comments〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/reverse-order-comments)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/reverse-order-comments/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/reverse-order-comments/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/reverse-order-comments/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/reverse-order-comments/)。

## 變更記錄

#### 1.1.1

 * 16.07.12 Tested with WP 3.4.1

#### 1.1

 * 08.06.12 Updated to work with WP 3.3.2; Now using filers, making it compatible,
   faster and future proof

#### 1.0.3

 * 07.06.12 maintenance release; change of plugin owner

#### 1.0.2

 * 18.05.08 release on the WordPress plugin directory; renamed the plugin to reverse-
   order-comments; changed the directory structure to enable the WordPress plugin
   autoupdate

#### 1.0.1

 * 13.09.06 small bugfix inside comments-topinput.php templates

#### 1.0

 * 11.11.05 Initial Release

## 中繼資料

 *  版本 **1.1.1**
 *  最後更新 **14 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 1.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.4.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/reverse-order-comments/)
 * 標籤
 * [comments](https://tw.wordpress.org/plugins/tags/comments/)[guestbook](https://tw.wordpress.org/plugins/tags/guestbook/)
   [order](https://tw.wordpress.org/plugins/tags/order/)[reverse](https://tw.wordpress.org/plugins/tags/reverse/)
 *  [進階檢視](https://tw.wordpress.org/plugins/reverse-order-comments/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/reverse-order-comments/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/reverse-order-comments/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/reverse-order-comments/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/reverse-order-comments/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/reverse-order-comments/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/reverse-order-comments/reviews/)

## 參與者

 *   [ Tim ](https://profiles.wordpress.org/timz/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/reverse-order-comments/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.kiva.org/invitedby/tim5156)