Support » Themes and Templates » Custom Templates with custom post type

Viewing 2 replies - 1 through 2 (of 2 total)
  • @neonwired

    As custom post types are essentially themes they use a variation of the single.php template, if you have a post type called test, the template for a custom post type page would look for the file single-test.php and the index pages / archive for the custom post type would be archive-test.php.

    Hope this helps.

    ^JD

    Thank you @jamesduffell! Much appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Templates with custom post type’ is closed to new replies.