标签: php wordpress .htaccess templates wordpress-theming
如果我的网址结构如下:
site.com/some-page/sub-page site.com/some-page/other-sub-page
我如何才能使some-page子目录中的所有内容都使用为父some-page.php页设置的some-page模板?
some-page
some-page.php
注意:理想情况下,子目录页面不是实际页面,因此在WP中加载的页面是some-page,然后我会使用URL在该模板中确定是否我应加载sub-page内容或other-sub-page内容
sub-page
other-sub-page