make index only show most recent post (2 posts)

  1. fenix275
    Posted 9 years ago #

    I'm making my 1st WP theme, so I'm an idiot with this jargon and knowledge. I'm trying to make a theme where the index of the site will look identical to a single page post. I want the index to show the most recent post, and the only way to get to other posts is to use the "Previous" or "Next" links, or to use the categories. I'm not sure what code will show my most recent post. Thanks.

  2. Michael Bishop

    Posted 9 years ago #

    There are numerous ways of doing this. The easiest that I've found, and one to cause the least number of conflicts with asides, sideblogs, etc is to use the custom query string plugin.

    A simple Options page allows you to set is_home to number of posts of 1, and your done.

    If you want code, just let me know, and I can post what I've used to accomplish this as well.

Topic Closed

This topic has been closed to new replies.

About this Topic