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.
- The topic ‘Custom post type uses index.php instead of archive-[name].php’ is closed to new replies.