Avoiding automatic markup insertion/generation
-
Hello,
I’m a new user of WordPress, trying to get things to “look” right. But I’m seeing that WP does some automatic formatting of my text, such as inserting line breaks whenever I hit enter, and also wrapping text in paragraph tags.
Now since I’m a competent HTML guy, and also wanting to control my markup quite tightly, this is a bit annoying. Now, looking around the code, I can see the function “the_content” seems to apply the line breaks and other stuff in the second line, where it goes
$content = apply_filters(‘the_content’, $content);
Now, it would be simply to comment this section out, but as I’m quite new to this, I wonder if there’s another way to go about it (also, it’s hard for me to “picture” the consequences of commenting the above code out). So any advice from seasoned users of WP?
- The topic ‘Avoiding automatic markup insertion/generation’ is closed to new replies.