Can’t get meta values to save

Figured it out:

There was a space in the field ID, and the $_POST key would collapse it. So the ID’s weren’t matching up in the foreach loop in my save function.

I solved this with a sanitizing function on the IDs for my meta fields.

I was further confused because my admin notices that I inserted to help me debug weren’t showing. I didn’t know that after saving the post, the page redirects, and the admin notices aren’t seen by the user. Therefore, I thought the save_post action wasn’t firing at all, when in fact it was.