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.
Related Posts:
- Setting a homepage – doesn’t seem to work
- Share parent path between Custom Post Types and Pages?
- How do I fix permalinks for custom post types that has the same slug as a page?
- Making a custom help center page
- Assign same parrent Page to pages AND custom post types
- Static page determines as home, but it is not
- Under What Conditions Can I name my CPT the same as my CPT Page?
- custom post creation on front page – on submit a search is done
- How to setup different permlalinks for posts and pages?
- How to stop a permalink redirecting to a page whit same slug but different permalink
- How to make “single post” permalink maintain it’s sub-page structure
- “regular” pages not found after changing permalink
- Custom Post Types and 404 Pages
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- remove custom post type permalink
- Getting hierarchical custom post type permalinks to work just like pages
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Add .html (dot HTML) extension to custom post types
- Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?
- Multiple post types – share same ReWrite slug?
- Removing unnecessary numbers appended to postname in permalinks
- Slug Formatting : Acceptable Characters?
- Custom post types – Use post_id in permalink structure when using has_archive => true
- How to handle a hierarchy with custom post types
- How to modify URL structures in custom post types and taxonomies or terms
- Disable Single Post View for Specific Taxonomy on Custom Post Type
- array_pop() expects array, boolean given for $event_type_term ->slug
- Using %postname% tag with a Custom Permastruct creates 400 Bad Request Errors from the server
- Can /%year%/%monthnum%/%day%/ structure tags be added to custom post type permalinks?
- Custom Posts on Different Pages
- Custom Permalinks for Custom post Type Archives?
- Include images from pages in wp search.php results in default wp search
- How to rewrite custom post type URL for multiple depths instead of one specific depth
- On clicking on the category name the page is redirecting on 404 pge
- wp_publish_post breaks permalinks
- Include taxonomy slug in url?
- Custom permalink – append taxonomy name and term name at the end of permalink
- Using a Custom Post Type Attachment as link
- Is it possible to use pages to apply static content to each taxonomy level?
- custom post type and custom taxonomy url conflict
- Get a permalink structure of /%posttype%/%category%/%postname%
- Add hierarchical taxonomy to permalink for custom post type
- Customize permalink when creating a post
- Pull in custom content types into page template
- Disable featured image
- custom permalinks based on taxonomies for custom post type
- Custom taxonomy in URL showing 404
- Custom post type and permalink issue
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Completely remove custom post type permalinks (“One Page” website)
- Why does my content disapear when I make a page to match an archive name?
- Permalinks: custom post type -> custom taxonomy -> post
- Custom post type permalink tag 404
- Custom permalinks rules don’t match and lost of query var in the process
- How to Create Template File for Parent Page of Custom Post Type
- Changed permalink structure of CPT – should I redirect?
- How to hyperlink content from archive page with custom post-type
- retrieve permalinks of posts inside custom post type by using post ID
- Can I change my post type to anything and my site still work?
- Why are some of my custom posts not showing up on my page?
- Custom post type permalink sends to 404.php
- Hide Status Option From WordPress Publish Metabox and Rename Published on:
- Template for custom post type when taxonomy is in the URL
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- How to change base in tag URL for custom post type, to not use “Custom Structure” set in Permalinks setting?
- Combine multiple CPT names to create valid permalinks
- Which is the neatest way to have homepage articles and a blog?
- Am I mixing up the concept of posts pages and categories?
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Subpages Permalinks Issues
- Multiple permalinks for a single post with multiple taxonomies
- Stop displaying Permalink
- Rewrite URL for CPT to domain/post-name/post-id
- Custom Endpoint For Specific Custom Post Type
- How do you create pillar content pages?
- Custom permalink structure for custom post types including multiple taxonomy
- Custom post type single page returning 404 error when sharing archive url with custom taxonomy
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- % encoded URL giving 404 error in WordPress
- How can i remove post type archive URL?
- Custom post type URL structure with site.com/custom_taxonomy_slug/post_name
- Links Image in “Catalog” Page to Posts
- Why does my plugin require a permalink reset after a new installation?
- How to have permalink structure based on taxonomy terms
- Multiple post types or single post type with category taxonomy?
- Get full control over custom post type url
- How to switch from custom post type URL to category URL?
- archive.php can’t find categorized posts
- Customizing the custom post type permalink
- Adding 2 CPT with multiple custom taxonomies to permalinks
- Custom Post Type permalink not working on new posts
- Storing postID in session variable to query database when visitor on custom template page
- Is it possible to remove the word “date” from archives?
- Permalink for regular posts “/blog/”
- Permalink for Custom Post Types