After installing the Custom Field Template plugin, you will find the Custom Field Template section in the settings in the admin menu. All settings for the Custom Field Template are made from this page.

The most important is the Custom Field Template option. Basic settings for custom field templates are configured here. After installation, the default sample is set to TEMPLATE #0.
By default, there are only two input fields, TEMPLATE #0 and #1, but if you enter and save the template content for #1, a new field for #2 will appear. Any number of templates can be set.
How to describe template content
As you can see in the default sample, template content is described in the same way as in php.ini, with the custom field key entered in [] and the optional attributes (like type = text) added from the next line. The keys should be placed on the same line as the text. It is best to leave a line space between the keys to make it easier to understand.
[sample] type = text label = Sample
Some optional attributes are common to all types and some are different for each type; see the description of each type for details.
Template Instruction
Templates can have a template instruction, which is text to be output before the template. You can enter a description of the template and other information, and you can also embed JavaScript. The values of custom field templates can be dynamically controlled using JavaScript.
Template Display Controls
You can filter where to display templates by post type, custom post type, Post ID, category ID, or page template file name
- Post Type
- Choose from both, post or page.If using a custom post type, select both.
- Custom Post Type
- Enter the custom post type name, separated by commas. If you want it to appear on a post or page as well, add post and page.
[code]book,movie,post,page[/code] - Post ID
- Specify the Post ID.
- Category ID
- Specify the category IDs (taxonomy IDs) you wish to display, separated by commas. If you check the “Deploy the box in each template” checkbox in the global settings, the category ID will not be applied.
- Page Template file name(s)
- If you want to output only when using a page template, enter the page template file name, including up to .php, separated by commas.
- User ID
- The output can be filtered by User ID, separated by commas.
- User Login
- The output can be filtered by User Login Name, separated by commas.
- User Role
- The output can be filtered by User Role, separated by commas.
- Template Format
- When Template Format is used, the
[cft]
shortcode formatting is also applied to custom field input. Use this when you want to create input screens with a high degree of freedom. [key] is used to output input fields and [[key]] is used to output the default key. Fieldset type is not supported.