查看单个艺术家。php我们是否正在查看上述自定义帖子的父级或子级?
尝试了这一点,但总是显示最上面的子内容,而不是显示两个不同的区域
<?php if (\'artists\' == get_post_type() || $post->post_parent==\'artists\') { ?>
the child single-artists.php
<?php } else { ?>
the parent single-artists.php
<?php } ?>