How to show the contants in front end same as visual editor with space / linebreak?

When you use get_the_content() to get your content, you need to apply filters to it to output with formatting. apply_filters(‘the_content’, $content); If you don’t need to do anything with the content before outputting it, you can replace your line $content = get_the_content(‘Read more); print $content; with just the_content(); For reference see apply_filters() and get_the_content() in … Read more

Automatically replace &nbsp with space

Yes, this is possible. You could do it when saving the post, or just when rendering (which won’t change the actual content in the editor). Using the_content filter, replacing characters in rendering: function wpse_387560( $content ) { $content = str_replace( ‘ ’, ‘ ‘, $content ); return $content; } add_filter( ‘the_content’, ‘wpse_387560’ ); Using the wp_insert_post_data … Read more

How to display shorter version of wp_editor?

You will want to pass some parameters into your $settings array for wp_editor() that only tells it to display the quicktags for strong,em,ul,ol, and link per your screenshot. I didn’t have time to test it, but this code should give you want you want: $settings = array( // Any previous settings you are currently using … Read more

WP as an HTML editor

WordPress is a CMS (Content Management System) and not an editor. That being said WordPress does have a simple WYSIWIG style editor built into it for formatting the content that you want to post.

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