I've created a vertical page template which displays stacked sections (which are simply the content from other wordpress pages). I am having problems displaying the contents of pages which are themselves using templates.
This is the main query I am using to fetch the contents of other pages:
<?php //change to the title of the pages you want to feature $page = get_page_by_title( 'About' ); $page_data = get_page($page); // Displays the content echo apply_filters('the_content', $page_data->post_content); ?>
This works fine for most of the pages, except those which rely on templates themselves. I "think" I need to include something about "get template part", but I am not experienced enough to understand how to use in this situation and could use some help?