I am trying to create links to only pages found in section 11, but seem to not be able to with what I have so far. I am trying to do it via the following, but I think something is not quite right the way I have the array in the beginning? What am I doing wrong?
<?php
$query = array (
'child_of' => 11,
'sort_column' => 'post_title',
'post_type' => 'page'
);
$queryObject = new WP_Query($query);
if ($queryObject->have_posts()) {
while ($queryObject->have_posts()) {
$queryObject->the_post();
the_title();
}
}
wp_reset_query();
?>
Thank you very much for any help with this!!!