WordPress.org

Ready to get started?Download WordPress

Forums

WP Section Index
Ignoring Headers with Tags (7 posts)

  1. iftomkins
    Member
    Posted 3 years ago #

  2. iftomkins
    Member
    Posted 3 years ago #

    Oops! Try that again:

    Great Plugin! It's just what I needed. I might choose to plop the widget at the top of each page, even.

    The one thing that is challenging is the fact that it skips headers that have <a> tags within them. I know that this is known. The only challenge is that I'm using another plugin, Table of Contents Creator, and in order for certain headers to show up in the Table of Contents, I have to put <a> tags inside of the header tags. But if I do that then the header doesn't show up in the Section Index. Oh no! Catch 22.

    Any thoughts? Would it be possible to enable the plugin to just ignore <a> tags that are within headers?

    :)! Thanks much.

    http://wordpress.org/extend/plugins/wp-section-index/

  3. Matty Cohen
    Member
    Plugin Author

    Posted 3 years ago #

    Hi iftomkins,

    Thanks for your post.

    At the first opportunity I get, I'll be looking into optimising WP Section Index further to accomodate different heading tag compositions (for example, XHTML tags within heading tags, such as in your situation).

    Does Table of Contents Creator not do the same thing as WP Section Index?

    Cheers,
    Matty.

  4. Matty Cohen
    Member
    Plugin Author

    Posted 3 years ago #

    Hi iftomkins,

    I have updated WP Section Index to version 0.0.0.8 which now includes more robust support for heading tags with attributes and nested XHTML tags.

    I hope this helps.

    Please advise if you experience any issues with this update. :)

    Cheers,
    Matty.

  5. iftomkins
    Member
    Posted 3 years ago #

    Hi Matty,
    Thanks for your response. I haven't tested the new version since, in the interim, I started using the Anchor Links plugin, which performs a similar function. http://wordpress.org/extend/plugins/anchor-links/

    The only thing that the Anchor Links can't do, and which seems WP Section Index can't quite do either, is to parse more than 1 Header Tag and organize them hierarchically. So, instead of choosing H2, H3 OR H4, being able to Choose H2 AND H3, for example, and then have the H3s displayed in the section index indented (like children)under the H2. Let me know if you have any tips on this. Thanks again for your work on the plugin!

    Best,
    Alan

  6. Matty Cohen
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Alan,

    Thanks very much for your suggestion and the link to Anchor Links.

    I'll take a look into your request and add it to the feature wishlist, if it's viable. :)

    Cheers,
    Matty.

  7. iftomkins
    Member
    Posted 3 years ago #

    Thanks, Matty! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic