Well -
I've adjusted post fields for your timesheet post (both field is date field now):
=> hidden link
I've created two forms:
"Form-time-in":
=> hidden link
"Form-time-out":
=> hidden link
You should visit the above link to see what content I've added to form body.
Then, I've added those form to your view:
=> hidden link
<div class="member_youth column"><span><strong> Check IN </strong></span>[cred_form form="form-time-in"]</div>
<div class="member_youth column"><span><strong> Check OUT </strong></span>[cred_form form="form-time-out"]</div>
I've added following code to your current theme's functions.php file:
/* form time in */
add_action('cred_save_data_84', 'save_data_for_time_in',10,2);
function save_data_for_time_in($post_id, $form_data){
update_post_meta( $post_id, 'wpcf-time-in', time() );
$my_post = array(
'ID' => $post_id,
'post_title' => "Time In - Post Belongs Member ID-".$_POST['_wpcf_belongs_member_id'],
'post_name' => "post-id-".$post_id
);
// Update the post into the database
wp_update_post( $my_post );
}
/* form time out */
add_action('cred_save_data_85', 'save_data_for_time_out',10,2);
function save_data_for_time_out($post_id, $form_data){
update_post_meta( $post_id, 'wpcf-time-out', time() );
$my_post = array(
'ID' => $post_id,
'post_title' => "Time OUT - Post Belongs Member ID-".$_POST['_wpcf_belongs_member_id'],
'post_name' => "post-id-".$post_id
);
// Update the post into the database
wp_update_post( $my_post );
}
Now, I can see that time in and time out entries connected to the member as well as it working fine.
Also, bonus if it can be show below the single member content and above the edit member information accordion.
==> Could you please kindly open a new ticket with your each new question. This will help other users searching on the forum.