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 use cmb for my custom metaboxes.

What I´ve done:

'type'    => 'wysiwyg'

My WP-Backend: (HTML-Editor):

<h1>Headline</h1>
Paragraph

Browser-Source just looks like:

<h1>Headline</h1>
Paragraph

Without <p> tag.

=> When I do the same code into the standard WP-Editor it works fine with <p>.

How can I export the <p>, too?

Thanks
Ogni

share|improve this question
global $post;
$paragraph = get_post_meta( $post->ID, 'be_paragraph', true );
echo wpautop( $paragraph );

or

echo apply_filters( 'the_content', $paragraph );

SOURCE

share|improve this answer
1  
What is that? An answer to your question? Please add some explanation. – kaiser Oct 2 '12 at 18:18

Your Answer

 
discard

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.