June 27, 201115 yr OK i'm nearly down to my last hair and it's going to be one of those obvious things as always but Google and Codex are bringing no joy! When i'm writting a page in Wordpress' admin, it's stripping all hyper links out. The current test page text is... Feel <a href="#">free</a> to email us at <a href="mailto:mail@mail.co.uk">mail@mail.com.co.uk</a> or fill in the form below. ...and this has been entered in the inbuilt HTML editor (visual editor is disabled but didn't work even when it was enabled). The view source via the browser of this looks like... Feel free to email us at mail@mail.co.uk</a> or fill in the form below. I've built tons of themes and Wordpress sites so this has stumped me no end!
June 27, 201115 yr Author Just to add and hopeful help, It doesn't strip the anchor from inserted images... hmmm
June 27, 201115 yr Doesn't WP use a modified version of TinyMCE? If so this might be of help -http://tinymce.moxiecode.com/wiki.php/TinyMCE_FAQ#TinyMCE_strip_away_attributes_or_tags_from_my_source.3F
June 27, 201115 yr Author Yeah i'm pretty sure it does but nothing on there really applies. Even with RTE turned off it still does it. It's only this site too, none of the others i've worked on have done it.
June 27, 201115 yr Yeah i'm pretty sure it does but nothing on there really applies. Even with RTE turned off it still does it. It's only this site too, none of the others i've worked on have done it. Check the basics, disable all plugins first, check your using the_content() and go.
June 27, 201115 yr Author Check the basics, disable all plugins first, check your using the_content() and go. Yup already run through that, that's why i'm so confused :s
June 27, 201115 yr You using a new theme on this site? It's always possible that someone wrote a filter to strip tags out. Is it stripping the tags out when you save in the admin panel or when you output the page?
June 27, 201115 yr Author You using a new theme on this site? It's always possible that someone wrote a filter to strip tags out. Is it stripping the tags out when you save in the admin panel or when you output the page? It's written by me based on a framework i put together and have used about a dozen times with no problems... that's why i'm about to launch the laptop out of the window It's stripping them from the live page output, although they are still there in the admin page.
June 27, 201115 yr Author Arghghgh what a nob! a.g.r.c made me think a little deeper and then i noticed i'd pointed the loop-page.php at the index loop, which used get_excerpt so it was stripping the links... doh! Thanks everyone, been a long day. Edited June 27, 201115 yr by MikeChipshop
June 27, 201115 yr ...It's stripping them from the live page output, although they are still there in the admin page... You using the <!-- more --> tag anywhere in the content? It might be showing an excerpt even with the_content(). http://codex.wordpress.org/Function_Reference/the_content You could always try making sure the argument for $strip_teaser is set to FALSE. Other than that I'm stumped.
June 27, 201115 yr Author ...Other than that I'm stumped. It's cool Porkchops, i discovered the problem... My blindness! Arghghgh what a nob! a.g.r.c made me think a little deeper and then i noticed i'd pointed the loop-page.php at the index loop, which used get_excerpt so it was stripping the links... doh! Thanks everyone, been a long day.
June 27, 201115 yr ...which used get_excerpt... That will do it! Glad you figured it out! We all have days like that...
Create an account or sign in to comment