Skip to content

Instantly share code, notes, and snippets.

@andyknapp
Created October 31, 2013 18:16
Show Gist options
  • Save andyknapp/7254375 to your computer and use it in GitHub Desktop.
Save andyknapp/7254375 to your computer and use it in GitHub Desktop.
Display a menu of child pgs on parent pg
<?php
$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0&sort_column=menu_order');
if ($children) { ?>
<section class="child-menu parent-pg">
<ul>
<li class="icon-arrow"></li>
<?php echo $children; ?>
</ul>
</section>
<?php }
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment