0

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

1 Answer 1

2
global $post;
$paragraph = get_post_meta( $post->ID, 'be_paragraph', true );
echo wpautop( $paragraph );

or

echo apply_filters( 'the_content', $paragraph );

SOURCE

1
  • 1
    What is that? An answer to your question? Please add some explanation.
    – kaiser
    Oct 2, 2012 at 18:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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