Title: wpbackbutton
Author: mdix
Published: <strong>2012 年 3 月 7 日</strong>
Last modified: 2012 年 3 月 7 日

---

搜尋外掛

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

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

# wpbackbutton

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

[下載](https://downloads.wordpress.org/plugin/wpbackbutton.0.2.zip)

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

 [技術支援](https://wordpress.org/support/plugin/wpbackbutton/)

## 外掛說明

wpbackbutton adds a “Back” button to your WordPress blog which behaves like the 
javascript history.back() method. In contrast to history.back() it, of course, doesn’t
need Javascript & makes it possible to have a working ‘Back’ button even if the 
user comes to your blog via direct link (the “Back” button then redirects to the
frontpage).

## 安裝方式

Install & activate plugin via wordpress backend.
 Add `<?php echo do_shortcode('[
renderBackButton]'); ?>` to your template (where you want to see the “Back” button).

## 常見問題集

  I can’t see the Back button on my Frontpage?

The “Back” button is only displayed if there’s a page to navigate back. Because 
there’s no page to navigate back to on the frontpage, you can’t see the button there,
even if you included it.

  How exactly does wpbackbutton work?

When a user enters a blog, wpbackbutton sets a cookie with the current URL and (
if the current URL is not the frontpage of your blog) the frontpage URL. If the 
user followed a direct link he’ll get redirected to the frontpage when pressing ‘
Back’, because there’s no history for that user. When starting with the frontpage
and navigating trough the blog, wpbackbutton saves the navigation history. When 
the “Back” button is clicked, the element, that has been viewed just before the 
current element, is loaded. This happens until the user is on the frontpage. Note:
It’s NOT neccessary to use the “Back” button in order to have a clean history. If
the user navigates to page A, then to page B and after that back to page A (with
a link, instead of pressing “Back”) the history acts as if the user pressed the “
Back” button.

Some navigation cases (different chars are different pages, where A is frontpage):

A -> B -> C -> D would reverse navigate C -> B -> A A -> B -> C -> D -> C would 
reverse navigate B -> A A -> B -> C -> D -> E -> C would reverse navigate E -> D-
> C -> B -> A A -> B -> C -> D -> A would clear the history (mainpage has no back
button)

  Where should I add the Back button?

I suppose that it’s no good idea to add the button into a loop, because you’d have
it below every post. Instead you should add it directly after / before the loop,
so it’s displayed once or twice (above and below the content). This typically takes
place in the single.php / page.php / category.php / … files of your template (wherever
a loop gets executed).

## 使用者評論

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

## 參與者及開發者

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

參與者

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

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

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

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

## 變更記錄

#### 0.2

first working, but untested version

#### 0.1

Initial creation.

## 中繼資料

 *  版本 **0.2**
 *  最後更新 **14 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.3.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wpbackbutton/)
 * 標籤:
 * [navigation](https://tw.wordpress.org/plugins/tags/navigation/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wpbackbutton/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/wpbackbutton/reviews/#new-post)

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

## 參與者

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

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](http://no-donate-link)