WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Custom post type uses index.php instead of archive-[name].php

[Resolved] Custom post type uses index.php instead of archive-[name].php

  • I’m developing a site for a client who requires a custom post type called fanzines. I have gotten single-fanzine.php working as intended, but instead of using archive-fanzine.php the site is using index.php to display the archive pages for the post type.

    I’m assuming that the error is located in index.php, since the site is using neither archive.php nor archive-fanzine.php for displaying the post type archive, but I can’t find it. I have uploaded a text file with the contents of index.php here.

    Oh, and I have specified ‘has_archive’ => true in functions.php.

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] Custom post type uses index.php instead of archive-[name].php’ is closed to new replies.
Skip to toolbar