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
global $post;
$paragraph = get_post_meta( $post->ID, 'be_paragraph', true );
echo wpautop( $paragraph );

or

echo apply_filters( 'the_content', $paragraph );

SOURCE

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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