Skip to content

Commit

Permalink
fix: show author organisations on author page
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimds committed Nov 1, 2023
1 parent 513fc4c commit 73ad11b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/app/themes/awasqa/src/authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function get_author_organisations($author_id)
{
$org_query = new \WP_Query([
'post_type' => 'awasqa_organisation',
'posts_per_page' => -1
]);
$orgs = $org_query->posts ?: [];
$author_orgs = [];
Expand Down
1 change: 1 addition & 0 deletions web/app/themes/awasqa/src/carbon-fields-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ function get_issue_options()
return $related_org['id'];
}, $related_orgs);
$organisations = get_posts([
"posts_per_page" => -1,
"post_type" => "awasqa_organisation",
"post__in" => $org_ids
]);
Expand Down
1 change: 1 addition & 0 deletions web/app/themes/awasqa/src/queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function get_org_post_ids($org_id)
{
$query = new \WP_Query([
'post_type' => 'post',
'posts_per_page' => -1
]);
$posts = $query->posts ?: [];
$org_post_ids = [];
Expand Down

0 comments on commit 73ad11b

Please sign in to comment.