I have a fully custom theme with a static front page and NO page set in Settings > Reading Settings > Front page displays as a posts page. However, I want to display certain posts (based on category) throughout the site on different static pages (and therefore, not have a set posts index page).
I injected this loop into one of those pages to test this out but got nothing but the page title. What am I doing wrong?
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <p><?php the_time('F jS, Y') ?> by <?php the_author() ?></p> <?php endwhile; ?> <?php posts_nav_link('','','« Previous Entries') ?> <?php posts_nav_link('','Next Entries »','') ?> <?php else : ?> <h2>Not Found</h2> <?php _e("Sorry, but you are looking for something that isn't here."); ?> <?php endif; ?>