All pastes #479807 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-05-09 22:15 UTC
rendered paste body
<?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 ?>