WordPress ate my HTML code
-
I’m wondering what is the best way to get round the “WordPress ate my code” problem.
The problem that I have is that if I want to use WP to create a web site rather than just a simple blog (https://www.windermerelogcabin.com/) I need more control over layout than the default TinyMCE editor allows, and I also want to be able to add iframes so I can have a Google map, or a Google Spreadsheet containing availability info etc.
It would appear that the limitation is intentional in order to stop people injecting code into a site via comment posting.
Now I can add an iframe or additional code in the html window, but if I even look at the post in the Visual editor the code gets removed.
I CAN stop this happening on a tag by tag basis by using the TinyMCE Valid Elements plug in, but it’s a bit cludgy, and I wonder if that is storing up a future problem from hackers? (Do I need to worry?)
I tried using the FCKeditor plug-in to replace WP but that gives problems here uploading images.
I wonder how other WordPress users get round the need to add valid html code, but at the same time allow non-techy users to add images and text without destroying it?
It seems to me that this is a bit of an Achilles heel for WordPress as far as website development goes – I’m moving along the change curve and have gone from “uninformed optimism” to “informed pessimism” now.
I’m hoping that someone can help me along to “informed optimism”
- The topic ‘WordPress ate my HTML code’ is closed to new replies.