Ready to get started?Download WordPress


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

  1. rawb
    Posted 6 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. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

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

  3. rawb
    Posted 6 years ago #

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

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    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. rawb
    Posted 6 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