0
votes

I'm trying to make a archive page for my blog.

I have my wordpress installation at: domain.com, The blog is on domain.com/blog and all other pages / custom post types are working from the root

For instance I have a custom post type for clients, this cpt works on domain.com/clients with a for archive-clients.php an overview page.

Now I'm trying to make a same page for the blog but nothing is working. The only thing that works is my index.php.

1

1 Answers

-1
votes

You should be able to create a file named archive.php

EDIT: more info below

If you want to have a special link for the /blog page create an extra template:

Wordpress looks for the template name to index page template listings. Example:

/*  
  Template Name: Blog Archive  
*/

Technically, you can copy the code from the index.php or archive.php, create another file, put the copied code in it, and at the very top of the file inside of opening and closing php tags have template name code. This will allow you to create a new page named blog (or anything else) in the wordpress admin area, then you can assign it to a template named blog archive.

More information: http://codex.wordpress.org/Page_Templates http://codex.wordpress.org/Template_Hierarchy