Title: [Plugin: Custom Field Template] default type does not work
Last modified: August 19, 2016

---

# [Plugin: Custom Field Template] default type does not work

 *  [alienfactory](https://wordpress.org/support/users/alienfactory/)
 * (@alienfactory)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-custom-field-template-default-type-does-not-work/)
 * Select default does not seem to work for any of the values i have set and if 
   i save the post without selecting any thing i get the following on my site
    mf_page_type:
   Post
 * They will load if i hit the initialize button
 * Is there something i missed in the config
 * Thanks
    Terry
 * [Due Date]
    type = text size = 35 date = true default = 4/4/45
 * [Responsible Patry]
    type = checkbox value = Meggan # Cathy # Inga # Sue # Kim#
   Terry default = Meggan # Cathy # Inga # Sue # Kim # Terry
 * [Status Level]
    type = radio value = High # Medium # Low default = Low
 * [File Upload]
    type = file
 * [http://wordpress.org/extend/plugins/custom-field-template/](http://wordpress.org/extend/plugins/custom-field-template/)

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

 *  [Hiroaki Miyashita](https://wordpress.org/support/users/hiroaki-miyashita/)
 * (@hiroaki-miyashita)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-custom-field-template-default-type-does-not-work/#post-1460589)
 * You need to hit the Initialize button on the right upper corner in order to load
   default values.
 *  Thread Starter [alienfactory](https://wordpress.org/support/users/alienfactory/)
 * (@alienfactory)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-custom-field-template-default-type-does-not-work/#post-1460799)
 * Can you tell me how I could have default items without having to click on the
   initialize button
 * thank Terry
 * by the Way love this plugin
 *  [Decio](https://wordpress.org/support/users/decio/)
 * (@decio)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-default-type-does-not-work/#post-1460980)
 * I thought this was a bug, as the default option works in the first template (
   template #0), but not on the next ones.
 * But I also realized the first template comes already loaded (and with the default
   working).
 * Maybe you could make the default load automatically with the template?
 * I also love your work.
 *  [DannyB](https://wordpress.org/support/users/dannyb/)
 * (@dannyb)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-default-type-does-not-work/#post-1460989)
 * This is one area of CFT that is tricky because its an extra step to train clients
   to hit the Initialize button the first time to get default values but not after
   values are set.
 * I prefer to hide the Initialize button in the Global Options if possible.
 * To get around setting up default variables, I just check in the template code,
   when getting the value initially, if the variable has been set (is null) and 
   if not assign it the default.
 * For example,here ‘show’ would be the default value:
 *     ```
       $showsidebar = get_post_meta($post->ID, 'sidebar', $single = true);
           if ($showsidebar == "" ) {$showsidebar = "show";}
       ```
   
 * I’ll also chime in that I love this plugin and the way you support it, Hiroaki

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

The topic ‘[Plugin: Custom Field Template] default type does not work’ is closed
to new replies.

 * 4 replies
 * 4 participants
 * Last reply from: [DannyB](https://wordpress.org/support/users/dannyb/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-default-type-does-not-work/#post-1460989)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
