How to Stop Wordpress Messing With Your Code!
|
|
|
|
Every designer that creates templates for Wordpress will undoubtedly run into the brick wall that is “Wordpress autoformatting”.
To cut a long story short, it is possible to input HTML code into any post or page created through the Wordpress interface. However, Wordpress often decides to reconstitute your code into meaningless crap.
If we want to stop this, we need to disable the “filters” that Wordpress uses to format the user-inputted content. These filters’ functions are located in the “functions.php” file in the root directory of the theme.
A quick but mindless way of getting rid of the auto-formatting would be to comment-out the offending functions; “wpautop” and “wptexturize”…
A more thoughtful way of removing them is to watch this video:






