WordPress.org

Ready to get started?Download WordPress

Forums

Different Index page from all other pages (3 posts)

  1. planetphillip
    Member
    Posted 9 years ago #

    I did search the forums but couldn't find exactly what I was looking for.

    Here's what I want to do.
    I would like to have my index page slightly different form all the other wp pages. The header, sidebar and footer would all be the same, but the content area would be replaced with the latest post from a number of categories with a few other static links. The layout within the content area would be more complicated than just a list of posts.

    When a user selects a post this would appear in the content area on it's own (just like a normal wp installation).

    So, essentially, the user would see three types of pages:
    1. Index page (mix of static and wp dynamic content. SImilar to news.bbc.co.uk)
    2. Normal post page (normal wp dynamic post page)
    3. Static page (simple css/xhtml page)

    All three would use the same header, footer and sidebar.

    Would somebody be kind enough to explain how I can get this working.

    I'm currently using 1.5 and everything will be in the root directory.

    TIA
    Phillip

  2. Ming
    Member
    Posted 9 years ago #

    WordPress uses index.php for the index page, single.php for an individual post and archive.php for displaying daily, monthly, yearly, author and category archives. 'Pages' can also be created and you can assign any template you create (ie page.php) to them.

    So by default WordPress should do what you want. The only time WP would use your index.php for say, a single post, would be if single.php was missing.

    Here's the docs page on themes that gives you a much better overview than I can.
    http://codex.wordpress.org/Using_Themes

  3. planetphillip
    Member
    Posted 9 years ago #

    Thanks, I should have been able to work that out myself!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.