I think, there is a lack of wp_autop()
and other formatting functions that get applied to the the_content
filter. The editor does not save <p>
tags at all, but later on line-breaks are converted into paragraphs by wp_autop()
.
I would like to say about meta content, for that like to recreate the default filters. I do this because some plugins add things by the the_content
filter.
There is some filters like below:-
add_filter( 'meta_content', 'wptexturize' );
add_filter( 'meta_content', 'convert_smilies' );
add_filter( 'meta_content', 'convert_chars' );
add_filter( 'meta_content', 'wpautop' );
add_filter( 'meta_content', 'shortcode_unautop' );
add_filter( 'meta_content', 'prepend_attachment');
add_filter( 'meta_content', 'do_shortcode' );
Place the below code where you want to display your actual data.
$your_description = get_post_meta($post->ID, 'meta_name', true);
echo apply_filters( 'meta_content', $your_description );