How to save checkbox choice in wordpress

If I understood correctly, you are not able to save using update_post_meta. If this is you can try saving using jQuery using ajax, try this. //on change checkbox jQuery.ajax({ type: ‘POST’, url: “/wp-admin/admin-ajax.php?action=your_custom_function”, data:{ meta_id: ‘YOUR_META_ID’, //get user or post meta and set here meta_value: ‘YOUR_META_VALUE’ /the value you want to save in the meta … Read more

while loop to be continue in next section

What you are looking for is PHP’s modulo operator and adjust markup as necessary: <?php $i = 0; $did_hr = false; $post_args = array( ‘post_type’ => ‘Student Form’, ‘posts_per_page’ => 6 ); $post_query = new WP_Query( $post_args ); if ( $post_query->have_posts() ) : while ( $post_query->have_posts() ) : $post_query->the_post(); ?> <?php if ( $i % … Read more