@lukecarbis We should probably do an `isset` check here just to be safe.

```php
$parent_id = isset( $post->post_parent ) ? $post->post_parent : null;
```