public
Created

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8
<?php
function be_always_parent_subpages( $args ) {
global $post;
$args['child_of'] = $post->ID;
$args['parent'] = $post->ID;
return $args;
}
add_filter( 'be_subpages_widget_args', 'be_always_parent_subpages' );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.