Subpage Conditional

Hmm, I’ll take a crack at this. There’s a few ways to go about this. Check to see if page is a direct child, check if it is an ancestor.

Something like below might work for you

if (283 == $post->post_parent) {
echo 'this post has a parent of 283 so do this';
}else {
    echo "or do something else";
}