Wordpress: List Only Child Pages of a Specific Parent Page

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. ID (ID=2 in this case)
  2. <?php wp_list_pages(‘child_of=2&sort_column=post_title&title_li=’) ?>
  4. Page (MyPageName in this case)
  5. <?php wp_list_pages(‘child_of=MyPageName&sort_column=post_title&title_li=’) ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.