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

Autogen Headers Menu

外掛說明

This plugin will automatically generate an ordered menu from the headers in your post.

  1. The plugin adds an ID to all your headers in the post.
  2. Add the shortcode [autogen_menu] anywhere in the post, to automatically generate a menu with links to your post’s headers.
  3. You have the option to add links the top of the page next to all the headers. Do this by adding the custom field “autogen_menu_show_top” with a value “true” to the relevant posts.

“autogen_menu” Shortcode Options

Options for the [autogen_menu] shortcode:

  • head_class = style classes for the Menu header.
  • div_class = style classes for the wrapping div.
  • ol_class = style classes for all OL.
  • li_class = style classes for all LI.
  • a_class = style classes for all the links.
  • depth = the maximum levels of menu to display. The default is 3.

Custom Fields

  1. Add the custom field “autogen_menu_show_top” with a value “true” to add “top” links next to your headers.
  2. Add “autogen_menu_show_numbering” to add numbers to all your headers.

Widgets

  1. There is a new widget called ‘Autogen Menu Widget’ that displays the post’s generated menu.

螢幕擷圖

  • An example of the menu created.

安裝方式

  1. Upload the “autogen-headers-menu” plugin to your /wp-content/plugins/ directory.
  2. Activate it.

常見問題集

Question: Will this plugin change my posts?

Answer: The only thing you add to your post is the shortcode. The plugin renders on display and changes nothing in the saved content.

使用者評論

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

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.0.1

  1. Added a menu widget.

1.0.0

  1. Added the option to have numbering to the headers.
  2. Added the option to ignore a specific header (usefull when placing the Menu after some content).
  3. Added the option to set the menu’s header text

0.9.2

  1. Made the plugin translation ready.
  2. Added the option to have links to the top of the page next to headers.
  3. Added “depth” option.
  4. Fixed a bug while displaying a menu with depth larger than 2.

0.9.0

First public version of the plugin.