Title: WP Section Index
Author: Matt Cohen
Published: <strong>2010 年 4 月 10 日</strong>
Last modified: 2010 年 12 月 20 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# WP Section Index

 作者：[Matt Cohen](https://profiles.wordpress.org/mattyza/)

[下载](https://downloads.wordpress.org/plugin/wp-section-index.1.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-section-index/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-section-index/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-section-index/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-section-index/#developers)

 [支持](https://wordpress.org/support/plugin/wp-section-index/)

## 描述

WP Section Index is aimed at users who write long blog posts or pages and divide
them up using headings.

The plugin retrieves the headings from the content of the Page or blog Post being
viewed, adds anchors to them and creates a neat list (in a widget) that allows the
user to easily navigate the content, finding either the content for which they were
specifically looking, or finding the content which they would find most useful. 
This list is also aimed at providing the user with a list of headings, explaining
what the Page or blog Post is about.

If you enjoy writing long blog posts, but fear that your users won’t read through
the entire post due to it’s length, fear no more. WP Section Index will make reading
those long blog posts that much easier for your users.

## 屏幕截图

 * [[
 * The administrator notices displayed when WP Section Index is activated. These
   prompt the setup of WP Section Index, as well as the insertion of the Section
   Index widget.
 * [[
 * The Section Index settings screen, where all the options for WP Section Index
   are setup.
 * [[
 * The widgets screen, depicting the Section Index widget (required to display the
   Section Index list).

## 安装

Installing WP Section Index is really easily. Simply follow the steps below:

 1. Upload the `wp-section-index` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Setup the Section Index via the ‘Settings’ menu in WordPress (there’s a “Section
    Index” menu)
 4. Load the ‘Section Index’ widget into one of your theme’s widgetised areas (preferably
    one that is viewable on both Pages and blog Posts)

When the plugin is activated, the setup process is clearly outlined via a series
of administrator notices displayed near the top of the WordPress administration 
area.

## 常见问题

  So, how does this plugin work anyway?

The Section Index plugin is used in conjunction with a widget, displaying the section
index for the page currently viewed by the user. The plugin looks through your content
and creates easy-to-navigate-to sections within the content. This is ideal for long
Pages or blog Posts.

  The section index isn’t displaying. What gives?

If the widget is not visible on the Page or Post, the section index will not display.
By the same token, if the widget is enabled and there are no sections for the Page
or Post in question (or the section index has been disabled for that Page or Post)
the widget displaying the section index will not display.

  What’s this about a “Back to top” element ID?

This is the ID of an element (a `div` tag, for example) in your theme to which you
would like the user to jump when a “Back to top” link is clicked. It is recommended
that this element be somewhere near the top of the screen, usually a `header` or`
top` element. The ID can be found by viewing the source of the page and looking 
for a tag with the `id=""` attribute. The value inside the quotation marks is what
is inputted in the `"Back to top" element ID` field.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP Section Index」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Matt Cohen ](https://profiles.wordpress.org/mattyza/)

[帮助将「WP Section Index」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-section-index)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-section-index/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-section-index/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-section-index/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-section-index/)。

## 更新日志

#### 1.1.1

 * Fixed bug with section index not displaying on non-paginated Pages and Posts,
   when “display all anchors” is active.

#### 1.1.0

 * Added functionality to toggle the display of all section index anchors in the
   widget when on a paginated Post or Page.
 * Added support for removing the “back to top ID”, such that the page jumps to 
   the top instead of to a specific element ID.

#### 1.0.0

 * Adjusted versioning structure to work as “Major Release”.”New Feature”.”Bug Fix”.
   Starting at 1.0.0.
 * Moved documentation on settings screen into the contextual help tab. Added links
   to support forum and documentation.
 * Added “noindex” and “nofollow” to the section index links, to prevent them from
   impacting on SEO.
 * Optimised plugin for translation and the future creation of a POT language file.
 * Added a first pass at a filter to add support for additional post types.
 * Added activation hook for keeping track of the version of WP Section Index that
   is in use.

#### 0.0.0.8

 * Added the `wpsi_backtotop_text` filter to the text in the “Back to top” hyperlinks.

#### 0.0.0.7

 * Added more robust support for detecting XHTML heading tags with nested markup
   and attributes when detecting headings for processing.
 * Added support for paginated pages and posts, to only show headings from the paged
   section being viewed.

#### 0.0.0.6

 * Added priorities to action hooks for compability with plugins that filter the_content().
   Compatibility testing with WordPress 3.0.

#### 0.0.0.5

 * Alpha release.

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**15 年前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 2.9 或更高版本 **
 *  已测试的最高版本为 **3.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-section-index/)
 * 标签
 * [links](https://cn.wordpress.org/plugins/tags/links/)[table of contents](https://cn.wordpress.org/plugins/tags/table-of-contents/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-section-index/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-section-index/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-section-index/reviews/)

## 贡献者

 *   [ Matt Cohen ](https://profiles.wordpress.org/mattyza/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-section-index/)