Skip to content

Instantly share code, notes, and snippets.

@LinzardMac
Created November 7, 2012 22:32
Show Gist options
  • Save LinzardMac/4034966 to your computer and use it in GitHub Desktop.
Save LinzardMac/4034966 to your computer and use it in GitHub Desktop.
<?php
// Template Name: Interior with Subnav
//add_filter('genesis_before_post_content','add_subnav');
function add_subnav() {
global $post;
echo '<div id="sibling-pages"><ul class="sibling-pages">';
wp_list_pages('title_li=&child_of='.$post->post_parent.'&exclude='.$post->ID);
echo '</ul></div>';
}
genesis();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment