Custom Posts with Templates issue (1 post)

  1. paulh16
    Posted 2 years ago #


    I am creating a theme that contains several custom post types (video, questions, etc.). Each custom post has its own page (with a loop for displaying each custom post), with a unique template file with the naming syntax of page-video.php; I have one for each custom post type (ie, page-video.php). The template hierarchy should use this template file first when each page is called. However, index.php was brought up instead. My permalink structure used the name of the custom post: ie, mysite.com/video for the page-video.php template file. Only when I switched the permalink to something different, say mysite.com/video2/ did the proper template appear.

    There must be something going on with the url and custom post being identical. Thanks for any help!

Topic Closed

This topic has been closed to new replies.

About this Topic