Undefined property: WP_Post_Type::$ID in single cpt
suetin opened this issue ยท 5 comments
suetin commented
Undefined property: WP_Post_Type::$ID
vendor\log1x\crumb\src\Crumb.php(line 231)
Change $type->ID to get_queried_object_id()
Its work for me
Log1x commented
can you dump $type
and see if the ID is on it at all? i dont have a test env at the moment.
suetin commented
suetin commented
Log1x commented
Yeah that seem's right. I'm a little confused how I got to the current implementation. ๐
Care to do a PR?
suetin commented
Yes๐