Hi. I am styling up a site and have it working nicely except for the single post pages. When I click on the post link in the sidebar, each post displays the first post info (header and content). You can see it here:
So far there are 2 events and 1 news article. But when you click on any of them, they all display the first post data (which is Santa’s coming etc). The permalinks appear fine, directing to the right page, but its the post title and content that isn’t right. This is the code I have in my single.php file:
<div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h5><?php the_title(); ?></h5> <br /> <?php the_content('<p>Read the rest of this entry »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?> <br /> </div>
The weird thing is I have used this for another site and it worked grand. I can’t honestly think of anything different with this site (uses the same theme template aswell). I must be missing something.
Any help would be greatly appreciated.