Forums

How to use archives.php as an index? (3 posts)

  1. hrstuks
    Member
    Posted 10 months ago #

    I've been trying to find a solution online for this;

    I'm showing only a single post on my index page,
    therefore I want my archives.php to function as index.php would normally do.

    I'm using wp_query and the Post Image Plug-in
    and only want to show the title and one image for each post.

    How do I go about this, should I be using something else than wp_query?

    (I'm using wordpress 2.7)

  2. wpsec
    Member
    Posted 10 months ago #

    One way would be to make sure archives.php is a page template (e.g. has the appropriate Template: tag in the top of the file somewhere), then make a page in WP, select the page template to be your archives template, then configure WP to use a static home page and set the static home page to be the page you created. That's it in a nutshell.

  3. hrstuks
    Member
    Posted 10 months ago #

    So in 'Reading settings'

    Front displays a static page:

    Front page: a page that shows only one post
    Posts page: a page that shows several posts, like index.php would normally do

    Is wordpress able to process both these requests or only one of them?

Reply

You must log in to post.

About this Topic