I'm trying to create a new page template that allows me to create pages on my site that will automatically have the latest posts added to the bottom of the page in the same format as they would be displayed on the default homepage, the only difference being that I would like them to be the same width as the page content. To do this I'm making an edit of the "template-page-fullwidth.php" file renamed "template-page-fullwidth-with-posts.php".
I presume that I'll have to add some php code to the template between where the page content ends and the footer begins.
<div class="entry-content">
<?php
the_content()
wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number');
edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>
</div>
</div><!-- .post -->
<?php
thematic_belowpost();
// calling the comments template
thematic_comments_template();
// calling the widget area 'page-bottom'
get_sidebar('page-bottom');
?>
// in here perhaps?
</div><!-- #content -->
I'm not even sure if this is the best way to do it, and none of the code I add from other pages which use the blog posts seem to work. My knowledge of PHP is extremely limited, and any help on this would be gratefully appreciated (especially if I'm going about this all the wrong way.)