Anonymous
public php v1 · immutable<?php if ($post->post_parent) { # added by johnbillionif (wp_list_pages("child_of=".$post->ID."&echo=0")) { ?><ul><?php wp_list_pages('child_of=' . $post->ID . '&sort_column=menu_order&depth=1&title_li='); ?></ul><?php } ?><?php if (wp_list_pages("child_of=".$post->post_parent."&echo=0")) { ?><ul><?php wp_list_pages('child_of=' . $post->post_parent . '&sort_column=menu_order&depth=1&title_li='); ?></ul><?php }}# added by johnbillion ?>