return unformatted content in encosing shortcode

The <br /> tags are being added to the content by the wpautop() function. If you run your shortcode before it runs they will not be there. It is added in \wp-includes\default-filters.php with the default priority of 10. add_filter( ‘the_content’, ‘myshortcode’, 1 ); function myshortcode( $atts, $content = null ) { return $content; } wpautop() … Read more

Can’t format content of Rich Text Editor in Template

Good question for your first question! Try running the variable through the_contnet Filter – You can use it like this: $editor_value = get_post_meta( $post->ID, “PLUGIN_VALUE”, true ); echo apply_filters( ‘the_content’, htmlspecialchars_decode( $editor_value ) ); I believe what’s happening is that whenever you save your postmeta, it is being escaped as it should and converted to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)