WordPress Tutorials
WordPress Custom Post Types Explained
A custom post type is one string in the posts table plus a registration call. The arguments you pass decide whether it gets URLs, an archive, REST access and its own templates — and most 404s come from three of them.