sandywp / plugins / custom-field-template

Custom Field Template

4.0 out of 5 stars. 4.0 24 reviews

The Custom Field Template plugin extends the functionality of custom fields.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v2.8.1 30,000+ installs WP 2.1+

your-sandbox.sandywp.com/wp-admin
Custom Field Template running inside a SandyWP sandbox

What you get inside

2 screens
  • Custom Field Template - Settings

  • Custom Field Template

About this plugin

The Custom Field Template plugin adds the default custom fields on the Write Post/Page. The template format is almost same as the one of the rc:custom_field_gui plugin. The difference is following.

We have finally published a manual site for the custom field template plugin. You can also use the custom field refinement search for posts in the admin panel. Please check here.

  • You can set any number of the custom field templates and switch the templates when you write/edit the post/page.
  • This plugin does not use the ini file for the template but set it in the option page of the plugin.
  • Support for TinyMCE in the textarea.
  • Support for media buttons in the textarea. – requires at least 2.5.
  • Support for multiple fields with the same key.
  • Support for hideKey and label options.
  • You can see the full option list in the setting page of the plugin.
  • You can customize the design of custom field template with css.
  • You can replace custom keys by labels.
  • You can use wpautop function.
  • You can use PHP codes in order to set values. (experimental, code = 0)
  • You can set an access user level in each field. (level = 1)
  • Supprt for inserting custom field values into tags automatically. (insertTag = true)
  • Adds [cft] Shortcode to display the custom field template. (only shows the attributes which have output = true)
  • Adds template instruction sections.
  • Adds the value label option for the case that values are diffrent from viewed values. (valueLabel = apples # oranges # bananas)
  • Adds the blank option. (blank = true)
  • Adds the break type. Set CSS of ‘#cft div’. (type = break)
  • Adds [cft] Shortcode Format.
  • Adds the sort option. (sort = asc, sort = desc, sort = order)
  • Support for Quick Edit of custom fields. (tinyMCE and mediaButton are not supported yet)
  • Support for the custom field search. (only shows the attributes which have search = true.)
  • Adds [cftsearch] Shortcode Format. (under development)
  • Adds PHP codes for the output value. (outputCode = 0)
  • Adds PHP codes before saving the values. (editCode = 0)
  • Adds the save functionality.
  • Adds the class option. (class = text)
  • Adds the auto hook of the_content(). (experimental)
  • You can use the HTML Editor in the textarea. (htmlEditor = true)
  • Adds the box title replacement option.
  • Adds the select option of the post type.
  • Adds the value count option.
  • Adds the option to use the shortcode in the widhet.
  • Adds the attributes of JavaScript Event Handlers. (onclick = alert('ok');)
  • Adds the Initialize button.
  • Adds the attributes of before and after text. (before = blah, after = blah)
  • Adds the export and import functionality.
  • Adds the style attribute. (style = color:#FF0000;)
  • Adds the maxlength attribute. (maxlength = 10)
  • Adds the attributes of multiple fields. (multiple = true, startNum = 5, endNum = 10, multipleButton = true)
  • Adds the attributes of the date picker in text type. (date = true, dateFirstDayOfWeek = 0, dateFormat = yyyy/mm/dd)
  • Adds the filter of page template file names (Thanks, Joel Pittet).
  • Adds the attribute of shortCode in order to output the shortcode filtered values. (shortCode = true)
  • Adds the attribute of outputNone in case there is no data to output. (outputNone = No Data)
  • Adds the attribute of singleList attribute in order to output with <ul><li> if the value is single. ex) singleList = true
  • Adds the file upload type. (type = file)
  • Adds the fieldset type. (type = fieldset_open, type = fieldset_close)
  • Adds the option to deploy the box in each template.

Localization

If you have translated into your language, please let me know.

Are you interested in other plugins? See the following site CMS x WP.

Known Issues / Bugs

Uninstall

  1. Deactivate the plugin
  2. That’s it! 🙂

Questions

How can I use this plugin?

The template format is basically same as the one of the rc:custom_field_gui plugin.
See the default template and modify it.

How can I display the custom fields?

  1. Use the cft shortcode. In the edit post, write down just [cft]. If you would like to specify the post ID, [cft post_id=15]. You can also set the template ID like [cft template=1].
  2. Do you want to insert a particular key value? Use [cft key=Key_Name].
  3. If you set the format of the custom fields, use [cft format=0].
  4. Auto Hook of the_content() in the option page of this plugin may help you do this. You can use [cft] shortcodes here. You can switch the cft formats in each category.

4.0

24 reviews

  • 5 ★ 16
  • 4 ★ 2
  • 3 ★ 0
  • 2 ★ 2
  • 1 ★ 4

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.