post_parent ) ) && ( is_numeric( $post->post_parent ) && $post->post_parent != 0 ) ) ) { wp_safe_redirect( get_permalink( $post->post_parent ), 301 ); exit; } } } } $aiosp_front_class = new All_in_One_SEO_Pack_Front();