This works great. Now here's where I'm stuck...I'd like to use a page to display my blog posts, which would be included in my one page flow and be called by get_page()in my WP_Query same as the other pages.
Update with codeUpdated to use WP_Query rather get get_pages
<?php
$args = array (
'sort_order' => 'ASC',
'post_type' => 'page',
'sort_column' => 'menu_order', //post_title
'hierarchical''order' => 1'ASC',
'child_of' => 0,
'orderby' => 'menu_order',
'parent' => -1,
'offset''posts_per_page' => 05,
'post_type' => 'page',);
'post_status' =>$query 'publish'
= new WP_Query( $args );
$pages = get_pages if ($args $query->have_posts();
) {
//start loop
foreach while ($pages as$query->have_posts() $page_data) {
$content = apply_filters('the_content', $page_data $query->post_content>the_post(); ?>
$title = $page_data->post_title;
$slug = $page_data->post_name;
?>
<a data-magellan-destination="<?php echo "$slug"$post->post_name; ?>" name='<?php echo "$slug"$post->post_name; ?>'></a>
<div id="<?php echo "$slug"$post->post_name; ?>" class="page-wrap full">
<h2><?php echo "$title"the_title() ?></h2>
<?php echo "$content"the_content() ?>
</div>
<?php }
} else {
}
wp_reset_postdata();
?>