• This isn’t a huge problem, but it’s slowly ticking me off. I used to use WP 1.2 but switched to 1.5 a week ago or so. I didn’t upgrade, I deleted the old WP entirely and created a new blog. Now, in my posts, HTML doesn’t always work. For instance, when I try to put something between A HREF-tags, the </A> isn’t always added, whether I write down the coding myself or use the “link” button. I try to edit the post several times and try to add the </A> tag, but after saving the entry it’s still not there. I have this same problem with some other coding too, such as </I> tags. Even if I refresh the page several times and/or open a new browser, nothing changes. Yet, if I remove the A HREF-tag, it updates it. O_O Wth?

Viewing 6 replies - 1 through 6 (of 6 total)
  • This might be a problem with WordPress trying to correct your HTML. In XHTML, the new standard for web coding, all tags must be written in lowercase. WordPress is probably reading your uppercase tags as invalid and removing them.

    That’s my only guess. Try writing your tags in lower case.

    Thread Starter Aleksandra

    (@aleksandra)

    I thought that might be the problem too, so I tried to write all tags in lower case, but the </a> tags are still not added. In my current journal entry I have three links: two of them have the </a> tag, but one of them doesn’t even though I try to add it over and over again. I have one bit of text between I-tags, and that one works, but before that I had another bit of text between I-tags and at that time the </i> wasn’t added, which resulted in half my text showing up italicized. So I had to remove the I-tags completely from that bit of text. You can view my journal here:

    https://www.grey-wanderer.org/ocm/

    At the bottom of my latest entry there are the three links I was referring to above. The links “Marta” and “Kristyn” are working fine (“Larissa” isn’t supposed to be a link so that one’s working too), but after “Suzanne” there should be a </a> which there isn’t even though I’ve tried to add it 15 times now.

    Try going into Options and turning off the option to automatically correct invalid XHTML nested lists and see if that makes a difference.
    Make sure there are no spaces between any of your tags and the text so it doesn’t read anchorspacenamespaceend.

    Also, I may be way off base here, but isn’t the correct tag <em> instead of <i> now? I had some issues with stuff showing up incorrectly or not at all awhile ago, and it turned out that was the problem: trying to use outdated tags…

    Thread Starter Aleksandra

    (@aleksandra)

    Sweet! Turning off the auto-correct feature seems to have fixed the problem, thanks very much for your assistance. As for the i-tags being outdated, I honestly don’t know, I’m not all that informed of the latest changes in HTML.

    I wish that bloody auto-correct “feature” would be turned off by default for those of us who aren’t the most proficient in writing pretty code. :/ Ah well… Glad to hear it works! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issues using HTML in posts’ is closed to new replies.