Skip to content

Commit

Permalink
fix: Child post sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfredrik committed Sep 1, 2023
1 parent 442e230 commit 5da3044
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modularity-graphql.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ function ($type_registry) {
$post_type
);
$resolver->set_query_arg('post_parent', $parent_post->ID);
$resolver->set_query_arg('orderby', [
'menu_order' => 'ASC',
'post_id' => 'ASC',
]);
break;
case 'posttype':
$post_type = get_field('posts_data_post_type', $root->ID, false);
Expand Down

0 comments on commit 5da3044

Please sign in to comment.