diff --git a/src/Crumb.php b/src/Crumb.php index 9b0cb49..1685a1e 100644 --- a/src/Crumb.php +++ b/src/Crumb.php @@ -123,7 +123,7 @@ public function build() return $this->add( $tag, null, - get_term_by('title', $tag, 'post_tag')->term_id, + get_term_by('name', $tag, 'post_tag')->term_id, true ); } @@ -161,7 +161,7 @@ public function build() return $this->add( $term, null, - get_term_by('title', $term, get_query_var('taxonomy'))->term_id + get_term_by('name', $term, get_query_var('taxonomy'))->term_id ); }