Automatically updating page list September 17, 2022 by Tarik Billa You can use the function wp_list_pages. If the default output isn’t enough you can write a custom walker for that function.