Problem solved. I was missing a group.
I found this after hours of struggling. Mediawerk you’re my hero!
My problem now is that when I post with my new custom post template, it works when clicking the permalink, but not on my page which is set to display blog posts.