Posts are designed for timely content like blog entries and appear in reverse chronological order. Pages are for static content like About or Contact and do not have a date.
Posts show up in blog lists, archives, and feeds. Pages are standalone and usually linked from menus or other pages.
The single.php template is used to display individual posts. page.php is for pages, archive.php for lists, and index.php is the fallback.
By default, WordPress supports comments on both posts and pages, but the theme must include the comments template in the page template to show them.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <?php endwhile; endif; ?>
The loop works for any content type. When viewing a page, it outputs that page's title and content.
