Better Anchor Links
[resolved] Anchor links appearing in excerpt (4 posts)

  1. Lime Blast
    Posted 3 years ago #

    I've got an issue with the BAL plugin causing text from the generated list of links to appear in the_excerpt().

    You can see this here: http://limeblast.co.uk/ see:

    "ContentsIntroductioniOS App Icon TemplateIntroduction I’ve been meaning to make this post for a few months now, but one thing lead to another, and before I knew it an unhealthy amount of procrastination had set in. I really don’t have any real…"

    under the "How to easily create iOS app icons for your website" post on the homepage.

    Any ideas?


  2. Lime Blast
    Posted 3 years ago #

    Just a quick follow up to my original post, with some more info, in the hope that someone will be able to help me out.

    I've found that while I'm getting the anchor links content on the homepage (see the "How to easily create iOS app icons for your website" post), I'm not getting it on my blog page (see the same post).

    I think this is because of the different ways in which I'm polling for content. i.e. the blog page uses the usual loop, with only a minor modification:

    https://gist.github.com/LimeBlast/897378c3d03a69d11ca9 (which uses the_excerpt();.

    Whereas the homepage, as this is just a regular 'page', with its own loop and content, I'm using the following code:

    https://gist.github.com/LimeBlast/071879ab304acd5b16db (which also uses the_excerpt();.

    So my question is, what can I change in the second query to stop the anchor links content from appearing?


  3. Lime Blast
    Posted 3 years ago #

    Sorry, me again, I think I've discovered what the real problem was. I've just gone in and disabled the auto display option for pages, and the extra content has gone.

    The issue is, this doesn't really solve my issue, as I still want pages to have the table of contents, I just don't want the excerpt of the extra loops on that page to have it.

  4. elpresidento
    Plugin Author

    Posted 2 years ago #

    I recomend use manual adding the tag [mwm-aal-display] into post or pages where you want to show list. Sry but your links are dead now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better Anchor Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.