anybody know a solution for this? I need to prevent wordpress from stripping all the html tags from my post-into. Is this can be fixed on the theme side of the code? because I like to avoid modifying the wp-include as much as possible so an upgrade doesn't mess things up. thanks in advance
What specific tags are being stripped? I have a feeling that since regular wordpress doesn't normally do this, you;re actually talking about wordpress.com and you're trying to add in some sort of scripting that gets removed due to security concerns. Also which specific editor are you using? The one with the icons along the top or the one with the html typed out?
<sup> and <sub> is what I need in there for math and I'm using the default editor and no there is no script, my theme has post into incorporated (the one that puts a bit of the post in the index page and then you have to click on the title to see the whole post in the single post) so the tags are showing in the single post page but not in the index. thanks for reply
So the tags aren't being stripped, they're just not showing all the time, right? Please provide a link to where you can see them and where you can't. I have a feeling you're looking at an archive page where all the tags are normally stripped. Next answer depends on where you;re hosted. (Regular wordpress that you download and host yourself or wordpress.com)
firebug is not showing the tags in post-intro but it's showing it for other pages.so tags are stripped for post inrto only. and the function that is processing the html for post-into is not the same as the function for archives and index page. the site is a client site hosted independent from wordpress. not on wordpress.com And I can't give links since it's a site for un-published book, sorry any hint appreciated thanks again
Fine. Google for the_excerpt and the_content and review it. Those are the functions that display the post content within wordpress. the_content displays the full content while the_excerpt strips out all tags (well most) and only displays the first 100 character or so. I have a feeling that whatever page you;re looking at with the stripped tags is using a page template with the_excerpt to display the content and where you;re seeing the full content, the theme is using the_content to display the content. Hope this helps, -drmike
I debugged both functions and the striping of the tags is happening before it gets to these functions I don't want to touch any of the core wp functions so I guess I have to come up with a work around thanks for help though cheers