Title: Default template
Last modified: January 22, 2021

---

# Default template

 *  Resolved [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/default-template-14/)
 * Hi guys – tldr;
    How do you set the default template selection when adding a 
   new post ?? See screenshot : [https://ibb.co/fpNPnz1](https://ibb.co/fpNPnz1)
 * I have used the Custom Post Type UI plugin to create a custom post called :
    
   Therapists I used Advanced Custom Fields plugin to create the input fields.
 * The Rules for these fields is :
    Show this field group if : Post Type is equal
   to Therapist
 * I created a template file in my child theme called tpl-therapist.php :
    /* Template
   Name: Therapist Layout Template Post Type: Therapist */
 * When I Add new –> Therapist I want the Page Attributes –> Template to default
   to Therapist.
 * How can I do this ?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/default-template-14/#post-13945107)
 * You shouldn’t need to. Rename your template to single-therapist.php
    See the 
   [Template Hierarchy](https://developer.wordpress.org/themes/basics/template-hierarchy/).
 *  Thread Starter [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/default-template-14/#post-13945345)
 * Thanks Joy – does it matter that I want to load a Page Temple, not a Post template?
   
   I would like to be able to use my Page Builder plugin for the Therapist content
   data.
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/default-template-14/#post-13945666)
 * The page template dropdown is stored as a post meta field. The content is the
   name of the template, so it is theme specific, as are any other template files.
   If there is no value (no post meta field), then you get the default template 
   according to the template hierarchy (which of course is theme specific because
   there may or may not be a template for the custom post type).
    Really, if you
   have a custom post type, you should have a plugin to handle it, but I can see
   how you can use generic plugins to build what you want. This is the same for 
   using the template hierarchy to pull in the correct template for the post type.
   The hierarchy uses the file name to determine which one, not the comment in the
   file. The comment in the file is for Page/Post templates for the dropdown list.
 * > I would like to be able to use my Page Builder plugin for the Therapist content
   > data.
 * The template file should not provide the content (besides handling the custom
   fields specific to the post type), but should always display whatever was entered
   in the editor (whichever one is used). So your statement doesn’t make any sense
   to me.
 * A plugin can also use the `template_include` filter to specify a different template
   than the one found from the hierarchy. (Themes should not modify this.)
    [https://developer.wordpress.org/reference/hooks/template_include/](https://developer.wordpress.org/reference/hooks/template_include/)
 *  Thread Starter [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/default-template-14/#post-13945676)
 * Excellent, it’s clear. Thank you Joy.
 * The difference between Page and Post for the Page Builder is that it doesn’t 
   always behave well with Post type as opposed to Page type.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Default template’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 4 replies
 * 2 participants
 * Last reply from: [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/default-template-14/#post-13945676)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
