Conflict between two custom post type declarations
-
I’m trying to create my own plug-in for a project and I need two custom post types. All seemed to be working well initially. I was able to declare the two post types and both show up in the admin area with their various custom taxonomies. I can create new posts using these custom types. But, whichever post type I declare first generates a page not found error when I try to view the post. Reversing the order of the declarations immediately results in a swap in which custom post type generates a 404 error.
I initialize the custom post types with this code:
[mis-formatted code redacted — see reply below]
The complete code is available here: https://pastebin.com/KAvPr7DL
I’ve been beating my head against this for hours and can’t figure out what’s going wrong. Any ideas? Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Conflict between two custom post type declarations’ is closed to new replies.