0

hello am trying to update and add editor content from metabox not using the default editor so i tried to use

wp_update_post($array);

but doesn't work it cause issue

Fatal error: Maximum function nesting level of '100'

so is there anyway to add or update post content from metabox without using the default editor

1 Answer 1

0

i found the answer i just add

global $wpdb;

then update the database

$wpdb->query( "UPDATE `$wpdb->posts` SET 
        `post_content` = '".current_time("Y-m-d H:i:s")."'
         WHERE `ID` = '".$_POST['content']."'" );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.