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

Endnotes

外掛說明

Endnotes is a simple solution for adding footnotes to your WordPress posts or pages. The plugin originated as a fork of John Watson’s FD Footnotes but has been updated to use the WordPress Settings API. The original plugin’s usage and functionality has been retained.

How to Use

You can add footnotes to your posts or pages by adding numbered inline content within square brackets. Place the inline content where you would like the superscript numeral to appear.

I am Jack's happy sentence that will contain a footnote[1. I am Jack's happy footnote] for calling out a reference.

Each footnote must have a number, followed by a period and a space, and then the actual footnote. They don’t have to be unique but it is recommended. It doesn’t matter what the numbers are since the footnotes will be automatically renumbered when the post is displayed.

Footnotes can contain anything you’d like including links, images, etc. Footnotes are automatically linked back to the spot in the text where the note was made.

Square Bracket Usage

Do not include square brackets inside the footnotes themselves.

Unique Footnote Numbers

Footnote numbers don’t need to be unique but it is highly recommended, especially if the text is identical for multiple footnotes. If you have multiple footnotes with the exact same text and number, you may get undesirable results.

螢幕擷圖

  • Endnotes settings screen
  • Endnotes usage in TinyMCE editor
  • Endnotes output

安裝方式

You can install Endnotes either via the WordPress Dashboard or by uploading the extracted endnotes folder to your /wp-content/plugins/ directory. Once the plugin has been successfully installed, simply activate the plugin through the Plugins menu in your WordPress Dashboard.

Once the plugin has been activated, visit the Settings page to customize the display of your footnotes.

常見問題集

Why was this plugin developed?

Though we loved the simplicity of the FD Footnotes plugin, we felt it was prudent to utilize the WordPress Settings API to prevent the occurrence of PHP errors we were encountering.

Will the plugin style my footnotes?

No. We felt it was important to leave the stylistic presentation of your footnotes up to you. The markup for the footnotes is pretty straightforward and should inherit your theme’s styles for h3, a, and ol elements. There are unique CSS class names you can hook into for further customization via your theme’s style.css file.

I am using FD Footnotes. Can I migrate to Endnotes?

If you would like to replace FD Footnotes with Endnotes, you will need to deactivate FD Footnotes before activating Endnotes. Because this plugin is using the WordPress Setting API, you will need to navigate to the Endnotes Settings page and save your settings.

Is the plugin translatable?

Yes. If you have translated the plugin into your language, please send the translation files to hello@heavyheavy.com for inclusion in future releases.

使用者評論

2017 年 7 月 17 日
There is a workaround for the single “]” problem at the end of the footnote. If you change footnotes to begin with “[[1. ” and end with “]]” and then manually change the plugin file named “endnotes-output.php: lines as below, you can use single “]” inside your footnote! 31 if ( preg_match_all(‘/\[\[(\d+\. .*?)\]\]/s’, $content, $matches ) ) { 32 foreach( $matches[0] as $fn ) { 33 $note = preg_replace( ‘/\[\[\d+\. (.*?)\]\]/s’, ‘\1’, $fn ); 34 $notes[$n] = $note;
2016 年 11 月 10 日
I have a VERY large document with a lot of endnotes and I initially had trouble with this program but it turned out to be an easy fix. The trouble I had was that my particular theme sometimes tries to isolate what looks to it like code (with code tags), and it was doing this with one or two of the closing brackets. When this happened, the program did not work correctly because it was looking for a closing ] for the footnote. All you have to do to resolve this is go into the text view and search (crtl-F) for “code” and you will be able to easily locate these instances. This happened with my theme but it might not happen with others. Erik was very responsive to my questions.
閱讀全部 5 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0.0

  • Initial release