What is causing this error? “Warning: Invalid argument”
Ran into the same issue. @Patriek is correct. The ‘taxonomies’ argument must be an array, hence the plural. E.g. $args = array( ‘taxonomies’ => array( ‘myTaxonomy’ ) ); This corrects the error. I only noticed this when moving a site to another server which leads me to think the register_post_type() function requires some php settings … Read more