global $post; DID IT! Yaaay!
Or so I thought… Worked for post that were already created, not for new posts…
Now its not even saving posts…
Please help!
Got it!
I removed the add_action call in the bottom and put it together with the function like this:
add_action(‘save_post’, ‘save_details’);
function save_details() {
And it worked!