# Data_Access::query_comments()

List comments for a post by top-level pages, including descendants for those parents.

```php
query_comments( int $post_id, int $page, int $per_page ): array
```

## Parameters

- `$post_id` (int) Post ID.
- `$page` (int) Page.
- `$per_page` (int) Top-level replies per page.

## Return

`array{rows: object[], total: int}`
