I have been studying it for a few hours now, I think I need someone to throw me a line here. I just need the code I can paste into a flat file and get the contents of a specific post (by pinpointing it’s ID), and then below that post to have the comments and the comment form. It should be easy, but I think WP’s template system obscure’s this a bit – at least for someone who doesn’t really know PHP.
I have figured out how to get just a specific post to show up, thanks to your help skippy. This is as far as I am with it.
<?php query_posts('p=1'); //retrieves post with ID 1 ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( (in_category('2')) ) { ?>
<div class="post">
<h3><?php the_title(); ?></h3>
<div class="entry">
<?php the_content(); ?>
<small>last edited: <?php the_time('F jS, Y'); ?></small>
</div>
</div>
<?php } ?>
<?php endwhile; else: ?>
Sorry, no posts matched your criteria.
<?php endif; ?>
I have a loop limited by post ID, and…er..also by category, just for the hell of it. Now when I try to display comments it goes all wrong. I need to copy and paste in some code from another template – can someone just tell me which one? Essentially, what I want is to replicate the perma link page., only constraining it to a specific post ID. If you can give me any help I’d really appreciate it!
d