• I created a custom post-type called projects. It displays the posts I entered in the admin panel perfectly. But uses the index.php instead of the template that I have assigned to the Projects page I created. If I name the page anything else other than projects, and use the same template it works fine. What am I missing?

    This the file I used to create the custom post type, which is linked in my functions.php.
    https://pastebin.com/zAVwwxnW

Viewing 1 replies (of 1 total)
  • I believe the problem may be that the permalinks for the custom post type are causing WP to find the Projects page before deciding that you want the custom template. You should be able to keep the Page title the same, but edit its permalink to something slightly different to resolve the confusion.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Type using index.php instead of template’ is closed to new replies.