• Hiya,

    I have a problem that makes my site non-xhtml compliant.

    When writing a post and using a plugin to add a video or mp3 file I use something like this: [MEDIA=9] but the problem is that when I publish the page the rendered code puts a < p > tag at beginning and end of the media code. See here: https://rafb.net/p/QnIlem99.html

    How do I stop WP from adding the paragraph tags to a location they are not needed in?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you have the ‘visual rich editor’ option enabled? Try disabling it and see how that works out for you. It’s located under: Dashboard > Users > Edit User

    Thread Starter fionagilbert

    (@fionagilbert)

    No I don’t.

    I fin d this really a problem as it breaks my pages validation.

    Any ideas pleassssse?

    Here is a link to show code again: https://rafb.net/p/gouLN855.html

    See how the paragraph tags is at beginning and end of flash code?

    Thank you
    Fi

    well those tags should not break anything, the CDATA script has a problem! look at line 24, it should have have &qt for greater than, its should have > to close the CDATA stuture correctly.

    Have you taking this up with the WORDTUBE author??

    Also without the P tags you would fail XHTML , but I think the problem is the fact that the greater than that closes the CDATA is at fault.

    If you pasted this from somewhere else, paste it into notepad (not a replacement editor) to stript out any nulls, then edit select all, copy from notepad and paste into the editor.

    best of luck.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘plugn code in posts and unwanted < p > tags.’ is closed to new replies.