WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using -this tutorial- to add simple meta boxes to a custom post type. But the textarea meta boxes are spitting out content all as one big paragraph, with no <p> formatting applied.

What code would add the -wpautop filter- to the meta box textarea? Thanks for any help.

share|improve this question
up vote 4 down vote accepted

Add a function that grabs your meta data, applies wpautop and echoes it out, or otherwise run it through when you output it in your template.

$my_meta = get_post_meta($post->ID,'_my_meta',TRUE);
echo $my_meta['name'];
echo wpautop( $my_meta['description'], 1 );
share|improve this answer
That did the trick. Thanks Milo! – Chad Von Lind Apr 22 '11 at 18:25

There is also a good Plugin for this Problem: http://www.bake-the-web.de/2012/03/22/no-wpautop/

It disables wpautop for Excerpt, Content or both.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.