This is a great trick I found today while working on a problem for a client.
What was happening is that wordpress was wrapping her image in paragraph tags and causing it not to float right with text wrapping around it.
The solution was to add this to the functions.php file. (note, make sure you back up your funtions.php file first!)
function my_formatter($content) { $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if (preg_match($pattern_contents, $piece, $matches)) { $new_content .= $matches[1]; } else { $new_content .= wptexturize(wpautop($piece)); } } return $new_content; } remove_filter('the_content', 'wpautop'); remove_filter('the_content', 'wptexturize'); add_filter('the_content', 'my_formatter', 99);
Now you simply add [raw] and [/raw] tags around the element you are having a problem with.
Disable WordPress Auto Formatting
Sometimes WordPress can be extremely annoying with the Auto Formatting. Often it will add a or a where you don’t want one and it will totally mess up the look of your page. Do how do we fix this? There are a couple of options. 1. You can get a plug-in to disable the auto…
New Site launched
This is the newest version of NetViper Interactive.com. We have removed the Powerpoint services and LeadViper Craigslist program. We will launch a new site for that program on its own. Please send us your feedback for the new site design.
Starting on Version 4.0 of the…
Starting on Version 4.0 of the website