• This one has got me a bit confused to say the least!

    I have created a custom post type ‘awards’, and created a post in that type called ‘the-brits’

    if I want a custom template for ‘the-brits’ it would be ‘single-awards.php’

    but what is the template for ‘awards’?

    I’ve tried awards.php or page-awards.php but both show 404s

    I know I could just create a page called ‘awards’ then set a template for that but wouldn’t that defeat the point of a custom post type… ie its not a page or post.

    All help or pointers appreciated

Viewing 1 replies (of 1 total)
  • Thread Starter tiptap

    (@tiptap)

    Ok I think I have solved it – if there is a better way let me know;

    When registering the post-type i set ‘has_archives’ => true

    then created the template archive-awards.php

    Now I get the correct template being called for ‘/awards/’

Viewing 1 replies (of 1 total)
  • The topic ‘What is the Custom Post Type template?’ is closed to new replies.