wp_editor on input changes content

I have a text area using wp_editor On first input it works great. Save via text or visual it saves to mysql just fine this is what is in the text area before I save <a href=”https://wordpress.stackexchange.com/wp-content/uploads/2014/03/Multi_Leaf_2098.jpg”><img class=”alignleft size-medium wp-image-555″ alt=”Drag Multi Leaf” src=”/wp-content/uploads/2014/03/Multi_Leaf_2098-199×300.jpg” width=”199″ height=”300″ /></a>Designed with a low arch, which promotes weight transfer … Read more

wp_editor in metabox not working

So, I’ve created a meta box within my page to allow my client to be able to add content into multiple different content blocks dynamically. I’ve done that using the wp_editor function like so. function what_we_believe_meta($post, $args) { $what_we_believe = get_post_meta($post->ID, ‘what_we_believe’, true); echo ‘</br>’; wp_editor( $what_we_believe, ‘what_we_believe’); } The problem that I’m running into … Read more

How to save html and text in the database?

I have two fields. The first is for plain text (but with special characters) and the second for html content (wp_editor is used). Both are later needed for phpmailer. <textarea style=”width:100%;height:200px;” name=”doi-altbody”><?php echo $epn_doi_altbody; ?></textarea> wp_editor( $epn_doi_body, ‘doi-body’, array( ‘editor_height’ => ‘300px’ ) ); 1) How do i correctly secure them after submitting the form … Read more

Get Post ID with insert/edit link

Hi I want to get the post ID from the post selected in the insert/edit link button. I would normally do: <a data-id=”<?php echo $post->ID; ?>” href=”https://wordpress.stackexchange.com/questions/256062/<?php the_permalink();?>”> Sample page link </a> But whenever the user adds the links from the tinymce content editor all they get is the permalink, I don’t know how to … Read more

How to pass the wp_editor content using jquery

I want to add the wp_editor content using jquery. I have hidden the wp_editor that needs to be displayed in the thickbox on one of the button click <div class=”hidden-editor-container” style = “display: none;”> <?php wp_editor($page_content , ‘hidePageContent’); ?> </div> How can I show this editor content into a wordpress thickbox? For example in below … Read more