Jquery autosave text area after typing

Am not sure what is your ID. Let as assume the ID as example Here is the code jQuery(function($) { $(‘#example’).on(‘keyup’, function() { if(autosave_timer) { clearTimeout(autosave_timer); } autosave_timer = setTimeout(save_by_ajax, 3000); // after 3 second of keyup save_by_ajax function will execute }); function save_by_ajax(){ var mid=$(this).attr(‘data’); var tid=’#’+mid; $(tid).jqte({“status” : false}); var content = $(tid).html(); … Read more

Custom fields and auto save

You need to check to see whether the $_POST data contains your custom field information before saving it: if (!empty($_POST[“intro”])) { update_post_meta($post->ID, “intro”, $_POST[“intro”]); } Also, WordPress will pass the post ID and post object into your callback if you ask it too. function save_intro($ID, $post){ //preserve the data in the admin section // … … Read more

Connection Reset on post/page save

If you are running mod_security or anything like that would be first thing to check. Security modules are server are known to react badly to WP’s POST requests. That is consistent with circumstances you describe (post saves, Ajax).

Why doesn’t my site autosave?

You are looking for the reference of auto-save in wordpress.com. I think you can have a look to your wp-config.php to see if you have a define about the auto-save interval. When editing a post, WordPress uses Ajax to auto-save revisions to the post as you edit. You may want to increase this setting for … Read more