Last active
September 2, 2016 20:20
-
-
Save timothyjensen/fef6d032b09269bbb4f92d1337677bb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'genesis_entry_footer', 'tj_subpage_navigation' ); | |
/** | |
* Adds page links to the descendants of page ID 6. | |
* | |
*/ | |
function tj_subpage_navigation() { | |
//* Return early if not on a page or if on the front page | |
if ( ! is_page() || is_front_page() ) | |
return; | |
$greatest_ancestor = 6; // Change this number to the ID of your parent/grandparent page | |
tj_page_navigation_links( $greatest_ancestor ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment