Custom Post Type Single Page and Archive Page redirects to Home Page

After hours of debugging I noticed that the problem was only reproduced when I used the library. Even if I used register_post_type, if I used any other functionality from the library before the register_post_type function call, it would cause some erratic behaviour.

I opted on removing PostTypes from my project and simply sticking to register_post_type and everything works as expected. Third-party libraries are nice and can be a godsend, but unless you are ready to get down and dirty debugging someone else’s code when things got astray, I can only recommend to steer clear of them.

Thanks to everyone who took the time to read and pitch in, much appreciated.