How to disable auto-p in WordPress?

In your child theme’s functions.php, try something like this: remove_filter( ‘the_content’, ‘wp_autop’ ); Note that this may have unintended side-effects, and will definitely have an effect on how your content renders.

Wpautop stops working after get_the_excerpt

wpautop has got to be my least favorite part of working with WordPress. Just when everything else is working, it sticks its fingers into everything… The problem has to do with filter priority, as you noted earlier. In the case of the excerpt, we’re interested in the filter get_the_excerpt. I haven’t been able to figure … Read more

Cannot get tags working from a WPAlchemy metabox with wp_editor()

sorry you were having trouble with my “Holy Grail”. It looks like you missed an important part in my functions.php sample: apply_filters(‘meta_content’,$simple_textarea->get_the_value(‘test_editor’)); You weren’t using WP Alchemy’s get_the_value method. So instead of: $richtextcontent = $page_type_richtext->the_value( ‘richfield’ ); yours should have been: $richtextcontent = $page_type_richtext->get_the_value( ‘richfield’ ); You were using the_value which echos out the value … Read more

Custom Field add markup to line breaks

I believe this is what you are after: // define $post_id, $key, $single $multipleLineValue = get_post_meta($post_id, $key, $single); // Convert into an array where desired code can be added to the output $multipleLineValue = explode(“\n”,$multipleLineValue); $output = “”; foreach ($multipleLineValue as $lineValue) { $output .= “<span>”.$lineValue.”</span><br>”; } echo $output;

How do I format my custom html so wpautop won’t try to reformat it?

The function that does what I think you are referring to is wpautop(), probably the most complained about function is all of WordPress-dom. It is a filter on the the_content hook among others. You can remove that with: remove_filter(‘the_content’,’wpautop’); I would suggest that you spend some time looking through the many related questions to see … Read more