HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/themes/redoable-lite/navigation-page.php
<?php
if(is_page() and ($notfound != '1')) {
	$current_page = $post->ID;

	while($current_page) {
		$page_query =& get_post($current_page);
		$current_page = $page_query->post_parent;
	}

	$parent_id = $page_query->ID;
	$parent_title = $page_query->post_title;
	$children = wp_list_pages('&child_of='.$parent_id.'&echo=0');
	if ( $children ) {
		?>
			<ul>
				<li><a href="<?php echo get_permalink($parent_id); ?>"><?php printf(__('%s','redo_domain'), $parent_title ) ?></a> <?php _e('Subpages','redo_domain'); ?> &raquo;</li>
				<?php wp_list_pages('sort_column=menu_order&title_li=&child_of='. $parent_id); ?>
			</ul>
		<?php
	}
}
?>