Support » Themes and Templates » Custom Posts with Templates issue

  • Hello,

    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, for the page-video.php template file. Only when I switched the permalink to something different, say did the proper template appear.

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

  • The topic ‘Custom Posts with Templates issue’ is closed to new replies.