Need a semi-static home page : Plug-in? Template? (2 posts)

  1. BeemerMonkey
    Posted 8 years ago #

    I need to have a homepage/index page that is different from the regular blog pages. Here's what I'm looking for:

    Static Content
    blah blah blah
    blah blah blah
    blah blah blah
    1. Most recent
    "featured" post
    2. most recent post

    I'd like the static area to be editable from within WP's editor (that is I don't want to have to manually edit a php file and FTP it when I need to change the "static" content)

    I'd like section 1 to have the last post (excerpt) that I write that I give a category of "Featured"

    I'd like section 2 to have the most recent post (excerpt)

    I'm still pretty new at WP, but I have done some work with templates, etc. I'm just not groking how to combine everything to get the page I need.

    Ideas, leads, samples, etc.?

    I see soem plugins that kind of address this, but I have a feeling that there's something to do with a custom page template.

  2. Kafkaesqui

    Posted 8 years ago #

    The answer is template. Mainly this sort:


    You'd first want to set up a Page (Write > Write Page) to provide your "Static Content." You can then assign it as your home page under Options > Reading, Front Page. That takes care of the initial "static" part.

    With a copy of the standard page.php template (if your theme sports one) you can work in additional custom queries after the default post loop. An example of that looks like:


    That is based on the Default theme's page.php. You may need to move things around, but the main element is the additional loops initialized through new WP_Query objects.


Topic Closed

This topic has been closed to new replies.

About this Topic