Please visit one of these pages for more information: |
\n”;
if ( $myPage != “” ) {
$query = “SELECT ID, post_title FROM $wpdb->posts WHERE post_parent = ‘”.$myPage.”‘ AND post_status = ‘publish’ AND post_type = ‘page’ ORDER BY menu_order”;
$results = $wpdb->get_results( $query );
//print_r ( $results );
if ( $results != “” ) {
foreach ( $results as $result ) {
$target = “”;
$link = “?page_id=”.$result->ID;
$customFields = get_post_custom($result->ID);
foreach ( $customFields as $key=>$value ) {
if ( $key == ‘link’ ) {
$link = $value[0];
$target = ” target=\”_blank\” “;
}
}
echo “
“.$result->post_title.” |
\n”;
}
}
}
?>