I would like to generate a template page from single.php.
It is obvious that I can't just save it as a template, so what do I change in my new template (see below) to show a specific post?
<?php get_header(); ?>
<!--
single.php
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->
<!--
Content of the page (inc comments and post details)
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->
<div id="page-body-wrapper">
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $ids[0] = get_the_ID(); // grabs the id of the page so it can be excluded in the recent posts plus widget ?>
<!--
The Post
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ -->
<div class="post-content">
<!--
Widget Area: [All Content] Above
~~~ -->
<?php dynamic_sidebar('[All Content] Above'); ?>
<!--
The Post Title
~~~ -->
<h1 class="h1-underline"><?php the_title(); ?></h1>
<!--
Widget Area: [Content Item] Above
~~~ -->
<?php dynamic_sidebar('[Content Item] Above'); ?>
<!--
Widget Area: [Content Item] Left
~~~ -->
<?php dynamic_sidebar('[Content Item] Left'); ?>
<!--
Widget Area: [Content Item] Right
~~~ -->
<?php dynamic_sidebar('[Content Item] Right'); ?>
<!--
The content itself
~~~ -->
<?php the_content(''); ?>
<!--
Pagination for Multi-page posts
~~~ -->
<?php wp_link_pages('before=<p class="multi-page">Pages:&after=</p>'); // if this is a multipage post then show the navigation ?>
<!--
Widget Area: [Content Item] Below
~~~ -->
<?php dynamic_sidebar('[Content Item] Below'); ?>
</div> <!-- class="post-content" -->
<div class="clearFloat"></div>
<!--
Post Details
~~~ -->
<!-- class="post-details" -->
<!--
<?php trackback_rdf(); ?>
-->
<?php endwhile; else: ?>
<p>
< h2 class="h2-simulate-h1-size">No posts found</h2>';
</p>
<?php endif; ?>
...