Please me!!!! Itried thow weeks and I search but without any result I can't save meta box that has both checkbox i need your help as soon as possible this is my code callback my metabox :
$terms = get_terms( 'type_livre', $terms = get_terms( 'type_livre',
array(
array(
`
<div>
<?php
$terms = get_terms( 'type_livre',
array(
'orderby' => 'id',
'hide_empty' => 1
)
);
foreach( $terms as $term ) {
$args = array(
'post_type' => 'livre',
'type_livre' => $term->slug taxonomy
);
$query = new WP_Query( $args );
echo'<h2 class="h2 faq-cat">' . $term->name . '</h2>';
while ( $query->have_posts() ) : $query->the_post(); ?>
<input type="checkbox" name="check_list" id="<?php the_ID(); ?>" value="<?php the_title() ; ?>" >
<label for="<?php the_ID(); ?>">
<?php the_title() ; ?>
</label>
<label for="Qte_livre" style="margin-left: 352px;buttom">
<?php echo 'Qte'; ?>
</label>
<input type="number" id="Qte_livre" name="Qte_livre" style="margin-left: 452px;"/>
<?php endwhile; wp_reset_postdata();
echo '<hr/>';
wp_reset_postdata();
}
`
wp_reset_postdata()