Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6131547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:59:18+00:00 2026-05-23T16:59:18+00:00

for all the hell that the autop function seems to give me when I

  • 0

for all the hell that the autop function seems to give me when I don’t want it, I have several custom meta boxes with tinyMCE textareas. and now they aren’t saving

tags.. they seem to be ok w/ saving other html markup.

my html for one of my boxes looks like:

<div class="customEditor">
    <div class="custom_upload_buttons" class="hide-if-no-js"><?php do_action( 'media_buttons' ); ?></div>
    <?php $mb->the_field('below_content'); ?>
    <textarea rows="10" cols="50" name="<?php $mb->the_name(); ?>" rows="3"><?php $mb->the_value(); ?></textarea>
</div>

the naming and stuff is all handled by WPAlchemy, hence the weird $mb->the_name() stuff

function
my_admin_print_footer_scripts() { ?>

/*

/* * Multiple TinyMCE Settings */
settings = {
mode:”specific_textareas”,
width:”100%”, theme:”advanced”,
skin:”wp_theme”,
theme_advanced_buttons1:”bold,italic,strikethrough,underline,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,spellchecker”,
theme_advanced_buttons2:”formatselect,XXXforecolor,|,pastetext,pasteword,removeformat,|,outdent,indent,|,undo,redo,|,code”,
theme_advanced_buttons3:””,
theme_advanced_buttons4:””,
language:”en”,
spellchecker_languages:”+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv”,
theme_advanced_toolbar_location:”top”,
theme_advanced_toolbar_align:”left”,
theme_advanced_statusbar_location:”bottom”, theme_advanced_resizing:”1″,
theme_advanced_resize_horizontal:””,
dialog_type:”modal”,
relative_urls:””,
remove_script_host:””,
convert_urls:””,
apply_source_formatting:””,
remove_linebreaks:”1″,
gecko_spellcheck:”1″,
entities:”38,amp,60,lt,62,gt”,
accessibility_focus:”1″,
tabfocus_elements:”major-publishing-actions”,
media_strict:””,
paste_remove_styles:”1″,
paste_remove_spans:”1″,
paste_strip_class_attributes:”all”,
wpeditimage_disable_captions:””,
plugins:”safari,inlinepopups,spellchecker,paste,wordpress,tabfocus”
};

  jQuery(document).ready(function($) {


          var $ta, id, mceID;


          $('.customEditor textarea').each(function(i){
              $ta = $(this);
              id = $ta.attr('id');

              if (!id){
                  id = 'customEditor-' + i;
                  $ta.attr('id',id);
              }
              tinyMCE.settings = settings;
              tinyMCE.execCommand('mceAddControl',

false, id);
});

          $('.custom_upload_buttons a').each(function() {
              $(this).click(function() {
                  mceID = $(this).parent().next('textarea').attr('id');
                  window.send_to_editor = window.send_to_editor_clone;
              });

              window.send_to_editor_clone = function(html){
                  tinyMCE.execInstanceCommand(mceID, 'mceInsertContent', false, html);
                  tb_remove();
              }
          });




      });     /* ]]> */</script><?php }

// important: note the priority of 99,
the js needs to be placed after
tinymce loads
add_action(‘admin_print_footer_scripts’,’my_admin_print_footer_scripts’,99);

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:59:19+00:00Added an answer on May 23, 2026 at 4:59 pm

    i did sort this out eventually. it turns out that WP does NOT save p tags into the editor. but linebreaks and the like are converted into p tags w/ certain WP filters. so the solution was a combination of altering my textbox to look like:

    <textarea class="wysiwyg" rows="10" cols="50" name="<?php $mb->the_name(); ?>" rows="3"><?php echo wp_richedit_pre($mb->get_the_value()); ?></textarea>
    

    and running wpautop (and a few other of the_content’s default filters on the output

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string that has several date values in it, and I want
In C++, I have a certain template function that, on a given condition, calls
Hell all, I have made use of the following ignore_user_abort . ignore_user_abort(true); set_time_limit(0); session_start();
Whenever I install a library that requires using subdirectories, it seems like I have
I have a simple function that shows and hides elements if a user clicks
I'm confused as hell with all the bazillion ways to read/write/create excel files. VSTO,
I keep hearing about DLL hell - what is this all about?
I normally program in C++, so all this DataSource/DataSet/Binding stuff is confusing the hell
All the recent VisualSVN Server posts made me want to check it out. I
All I want is to be able to change the color of a bullet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.