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

Auto Anchor List

描述

Creates anchor links to heading tags in the content and displays them automatically at the top of the content, or allows for custom placement with tags or sidebar widget.

Features:
1. Has option to auto display anchor links to Heading tags in content.
2. Allows control of which content to auto display links.
3. Can disable plugin css to allow custom styles to be applied.
4. Has widget available for display
5. Insert custom title to display above links
6. Clears all traces from any excerpts displayed

屏幕截图

  • Admin options
  • Display in default wordpress template

安装

  1. Upload to your WordPress plugins folder.
  2. Activate in WordPress admin area.
  3. Update options under “Settings->Auto Anchor List”

常见问题

How Do I Place In Custom Locations?

In Content
1. Using the visual editor
– Add the tag [mwm-aal-display] into your individual content using the visual editor.
2. PHP Template Tag(must be below the_content())
output_content_links(); ?>

In Sidebar
1. Activate Widget
– Go to Appearance -> Widgets in WordPress admin “MWM Auto Anchor List”.
2. PHP Template Tag
output_sidebar_links(); ?>

How Do I Add Custom Styles?

The content display and side bar are wrapped with a

<

div> with an assigned css class. You can put the classes into your own style sheet and use further declarations to target elements within the div.

For Content:(uses <ol>,Does not use an H tag for title)
    .mwm-aal-container{}
    .mwm-aal-container-title{}

For Sidebar: (uses <ul>, traditional h2 tag for title)
    mwm-aal-sidebar-container{}

评价

2018 年 8 月 8 日
This works with heading levels. Have some issues: * If you add attributes to headings the heading is missed from the table of contents * There are many errors on the admin page that show that could easily be fixed by the author * Styling is flexible – but you have to add your own css rather than have the styling in the admin of the plugin which would be useful * There are no options to position the TOC. It comes out where the shortcode is added. This is a plus and minus. I like it but I would think for those less able to style pages it would be an issue. Overall I like the plugin and it does what it says. If the author could get rid of the pesky errors that are displayed in the admin interface it would get a 5* review from me.
阅读所有2条评价

贡献者及开发者

「Auto Anchor List」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Auto Anchor List」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志