From d040659b39486f7f8e0d24169744ed1afab99006 Mon Sep 17 00:00:00 2001 From: Alexander Suetin <54860941+suetin@users.noreply.github.com> Date: Tue, 29 Aug 2023 02:29:10 +0800 Subject: [PATCH] fix(crumb): Undefined property: `WP_Post_Type::ID` in single custom post type (#18) --- src/Crumb.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Crumb.php b/src/Crumb.php index 1685a1e..1474f5e 100644 --- a/src/Crumb.php +++ b/src/Crumb.php @@ -228,7 +228,7 @@ public function build() $this->add( $type->label, get_post_type_archive_link($type->name), - $type->ID + get_queried_object_id() ); }