diff --git a/lib/Conifer/Post/Post.php b/lib/Conifer/Post/Post.php index 6269747..6e9a2c1 100644 --- a/lib/Conifer/Post/Post.php +++ b/lib/Conifer/Post/Post.php @@ -500,13 +500,13 @@ public function get_related_by_taxonomy( }, $this->terms($taxonomy)); $this->related_by[$taxonomy] = static::get_all([ - 'post_type' => $this->get_post_type(), - 'post__not_in' => [$this->ID], - 'numberposts' => $postCount, - 'tax_query' => [ + 'post_type' => $this->get_post_type(), + 'post__not_in' => [$this->ID], + 'posts_per_page' => $postCount, + 'tax_query' => [ [ - 'taxonomy' => $taxonomy, - 'terms' => $termIds, + 'taxonomy' => $taxonomy, + 'terms' => $termIds, ], ], ]);