Custom field in PHP file
Assuming your $hasp_expire_date = get_post_meta( $post_id, ‘hasp_expire_date’, true ); is giving you the correct value you need, you are storing your that in the $hasp_expire_date variable. So edit that second line to: $num_comments = get_comments_number( $block_data[‘id’] ); // Pull in the value you need $hasp_expire_date = get_post_meta( $post_id, ‘hasp_expire_date’, true ); // You are going … Read more