• Howdy,
    Ok, someone might have done this already, but I can’t find it.
    I’m currently running an “art commune” kinda-thing at http://www.strawpixel.com and I’m trying to figure out how to do a simple(?) thing. I’d like to be able to only show the latest post in a category or on the front page, with a “Next Post” “Previous Post” button over the post. The reason for this is simple: two of the artists working on the site are graphic artists and, well, they post pictures. It’s annoying for the user to get all of that artists artwork download everytime they go into that category. I’ve tought about using a image slideshow instead, but I’d like to use the same method for the other non-visual artists (ie, writers).
    I’m fairly new at PHP, but can’t seem to be able to wrap my head around this. It would be somewhere in The Loop, right? Can I just not use the Loop and simply post the latest entry only?
    Help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Easy! Log in as the admin, and in the Options->Reading page, set “What to show” to 1 post.
    That will show only the latest post.
    In order to add the next / previous link, you will need to add some code in index.php. The following page should get you started:
    http://wiki.wordpress.org/link_pages
    also take a look at http://wiki.wordpress.org/TemplateTags for a few pre-fabricated template tags that you can use to make your life easier 🙂

    Thread Starter downbylaw

    (@downbylaw)

    That only works for the front page! it doesn’t seem to affect the different categories, which is where I really want this to work!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Displaying only latest post’ is closed to new replies.