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.
Google Adds Countdown Widget
Google just announced a new countdown widget that makes it easy for advertisers to place countdown times within their ad copy dynamically. With a countdown widget, you can create a sense of urgency for customers to buy what you have now versus later. This includes the ability to set the following messaging in your ad…
Penguin Continues To Roll Out
Typically when Google launches a new algorithm update, it is over pretty fast and everyone is scrambling to figure out what to do next. This certainly has not been the case with Google Penguin 3. We’ve been seeing a lot of activity around sites impacted by Google’s Penguin algorithm over the past few weeks. When…
Google Launches Adwords Editor 11
Yesterday Google announced the latest version of Adwords editor, now version 11. This version has been completely re-written, which is a good thing because the old version felt like it was done for windows 95. For those of you not familiar with adwords editior, it is a faster way manage your adwords account than simply…