wordpress页面
How to list a page’s child pages in WordPress?
如何在WordPress中列出页面的子页面?
wp_list_pages
can list the sub pages of a page.
wp_list_pages
可以列出页面的子页面。
Check this code (also include the HTML that wraps it as an example):
检查以下代码(还包括包装它HTML作为示例):
<h3>Pages under <?php the_title(); ?></h3>
<div class="entry">
<ul>
<?php
global $id;
wp_list_pages("title_li=&child_of=$id&show_date=modified
&date_format=$date_format");
?>
</ul>
</div>
Answered by SA.
由SA回答。
翻译自: https://www.systutorials.com/wordpress-how-to-list-a-pages-child-pages/
wordpress页面