WordPress adding mysterious "</a>" to "more" links (5 posts)

  1. Rob Gabaree
    Posted 8 years ago #

    I'm using the WordPress "more" tag; it works fine, but when it generates the <span> tag on the single post page, it is adding an additional "" for some reason when there is no link present! Here's an example of the output I'm seeing: http://pastie.caboo.se/138687

    Does anyone know why this is happening?

  2. This is not enough information. Can you give us an actual URL with a live example of this occurring?

  3. Rob Gabaree
    Posted 8 years ago #

    Sure, click any of the "Continue reading..." links on this page: http://tinyurl.com/yrmqym

  4. It's not coming from anywhere, it's actually in your post content itself.

    Here's a single post with the problem:

    Here it is on your main page. Note that the Continue Reading link ends and has no extra /a:

    Now, looking at it in the RSS feed (which simply removes the <!--more--> tag entirely, you see that the /a is actually in there:

    Edit the post. View the code. The extra /a is actually in the code, I think. Or it's being added after that more link in the editor, somehow.

    You could try turning off the visual editor to see what's really in there without the prettified editor obscuring it from you.

  5. Rob Gabaree
    Posted 8 years ago #

    I guess it has to do with how WordPress formats the <!--more--> tag, because I moved the tag to it's own line (instead of having a 'p' or 'strong' tag directly after it) and now the 'a' tag seems to be gone: http://www.iwaslazy.com/2008/01/the-thirtieth-day/

Topic Closed

This topic has been closed to new replies.

About this Topic