Skip to content

Instantly share code, notes, and snippets.

@chasereeves
Created March 4, 2012 20:48
Show Gist options
  • Save chasereeves/1974727 to your computer and use it in GitHub Desktop.
Save chasereeves/1974727 to your computer and use it in GitHub Desktop.
WP List children of a specific, known page. (e.g., Resources)
//=========================================================== SIDEBAR == Resources
function sidebar_resources() { ?>
<li class="widget widget_resources">
<h3>Resources</h3>
<ul>
<?php wp_list_pages('title_li=&child_of=614&sort_column=post_modified') ?>
</ul>
</li>
<?php }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment