Log1x/crumb

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

image

suetin commented

image

This code works correctly

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๐Ÿ™‚