How to save multiple values in custom post type from front end to back end

wp_insert_uses (trac) the following loop to handle meta_input, if ( ! empty( $postarr[‘meta_input’] ) ) { foreach ( $postarr[‘meta_input’] as $field => $value ) { update_post_meta( $post_ID, $field, $value ); } } So if you change meta_input in your new post args to be like this, ‘meta_input’ => array( ‘invocies’ => array( ‘service’ => $_POST[‘service’], … Read more

metabox dosn’t save with checkbox of post_type values order by taxonomy

i don’t know how can i save this metabox please helpe me. This Is my code : <?php function book_function_meta_box(){ add_meta_box(‘book_meta_box’, ‘more Infos’, ‘book_meta_box_callback’, ‘book’, ‘normal’); } add_action(‘add_meta_box’, ‘book_add_meta_box’); function book_meta_box_callback() { wp_nonce_field(‘book_save_meta_box_data’, ‘book_nonce_name’); $terms = get_terms( ‘category’, array( ‘orderby’ => ‘id’, ‘hide_empty’ => 1 // hide categories with no posts ) ); foreach ($terms … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)