该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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