Targeting all pages except top level pages
Try this: <?php if ( ‘0’ != $post->post_parent) { include ‘siblings.php’; } ?> !== refers to an exact type match too. So your code doesn’t work because the post id is stored as an integer. != will disregard the fact that you are comparing a string to a number. Hope this helps. You could also … Read more