We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8500f commit 7251828Copy full SHA for 7251828
src/PostTypes/Post.php
@@ -98,7 +98,7 @@ public function withExcerpt()
98
public function withCategories()
99
{
100
$this->categories = \array_map(function (WP_Term $term) {
101
- return new Category($term->term_id);
+ return (new Category($term->term_id))->withAll();
102
}, \get_the_terms($this->WP_Post, 'category'));
103
104
return $this;
0 commit comments