Support » Fixing WordPress » Display one post per page

  • I’m trying to display a single post per page (daily photoblog). I’ve got a separate template made, yet I can’t find code to display *only* the last post in the category.
    I’ve got the category filtered by specifying $cat = ‘7’; at the top of the page.
    I’ve seen references to $single, but haven’t seen docs on how to use it. Read lots about ‘static’ pages, but that’s not what i’m looking for either.
    My use is a single template page that shows the latest post to that page with a link to previous and next posts. I just can’t figure out the iteration code to replace
    if ($posts) : foreach ($posts as $post) : start_wp();
    I’ve seen people do this, but haven’t seen it documented. Please explain how it’s done.

Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Display one post per page’ is closed to new replies.