Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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
    
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.