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 Panda 3.3
Google released Panda 3.3 update in February. Though 40 updates were done, we haven’t seen any change in ranks for the website we do SEO for. What stands out the most to me is: Link evaluation. We often use characteristics of links to help us figure out the topic of a linked page. We have…
Google says SEO is not SPAM
Well, it’s official. Matt Cutts, the head of Google’s Web spam team, says that SEO (Search Engine Optimization) is not spam. This is not a big surprise to many of use that have been in the industry a lot time, but it helps justify what we do to clients who are not really sure if…
WP-Admin goes blank
This can be a serious problem and mean one of your plugins has caused a lot of problems with your site. It is a scary experience when you cannot log in to your own site. That being said, try this first. Look at your functions.php file and find any empty spaces at the top or…