I am currently using the below code to generate a secondary menu within the pages:
page_parent_1
page_child_1
page_child_2
Is it possible to set it up so that it will create the menu in the parent ‘page_parent_1’ and automatically add to all the children without adding every child page id or slug to the <?php … ?> code.
<?php
global $post;
/* Replace "12" with the ID of page_parent_1 */
if( 12 === $post->ID || 12 === $post->post_parent ) {
/* Do your menu stuff here */
}
?>