Skip to content

Commit

Permalink
Use this more precise way of getting blog posts related to a project
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham committed Oct 17, 2024
1 parent 79ba293 commit 7c5183a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,13 @@ class="wp-block-spacer is-style-20-40"></div>
'order' => 'DESC',
'orderby' => 'date',
'no_found_rows' => true,
's' => $project_slug,
'tax_query' => array(
array(
'taxonomy' => 'lf-project',
'field' => 'slug',
'terms' => $project_slug,
),
),
);

$related_query = new WP_Query( $related_args );
Expand Down

0 comments on commit 7c5183a

Please sign in to comment.