Visual and Text tabs missing from Editor

Your problem could be one of 2 things: This could be because for some reason the tabs were disabled. To enable it log into your WordPress admin > WordPress Main Menu > Users > Edit(user with the issue) > First Option Top of Screen is “Visual Editor”> Unchecked the box > clicked save, and everything … Read more

Add class to oEmbed video from within post editor?

One idea for the shortcode version, would be to add the custom class via the the native shortcode: then you could add it to your custom wrapper with: add_filter( ’embed_oembed_html’, function ( $html, $url, $attr, $post_ID) { return sprintf( ‘<figure class=”video-container %s”>%s</figure>’, isset( $attr[‘class’] ) ? esc_attr( $attr[‘class’] ) : ”, $html ); }, 10, … Read more

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( ‘&nbsp;’, ‘ ‘, $content ); return $content; } add_filter( ‘the_content’, ‘wpse_387560’ ); Using the wp_insert_post_data … Read more