2 removing wrongly placed ?> tag
source | link

Answer from an older PHP noob:

<?php

$pages = get_pages('child_of=1015&sort_column=post_title');
$count = 0;

if (!empty($pages)) {
  foreach($pages as $page) { ?>
    // show stuff
  } // end foreach
} else {
  echo '<p>There’s no content here. Check back later.</p>';
}
?>

Answer from an older PHP noob:

<?php

$pages = get_pages('child_of=1015&sort_column=post_title');
$count = 0;

if (!empty($pages)) {
  foreach($pages as $page) { ?>
    // show stuff
  } // end foreach
} else {
  echo '<p>There’s no content here. Check back later.</p>';
}
?>

Answer from an older PHP noob:

<?php

$pages = get_pages('child_of=1015&sort_column=post_title');
$count = 0;

if (!empty($pages)) {
  foreach($pages as $page) {
    // show stuff
  } // end foreach
} else {
  echo '<p>There’s no content here. Check back later.</p>';
}
?>
1
source | link

Answer from an older PHP noob:

<?php

$pages = get_pages('child_of=1015&sort_column=post_title');
$count = 0;

if (!empty($pages)) {
  foreach($pages as $page) { ?>
    // show stuff
  } // end foreach
} else {
  echo '<p>There’s no content here. Check back later.</p>';
}
?>