如何为自定义字段创建简码?

how to create shortcodes for custom fields?

我想知道如何为自定义字段创建简码? enter image description here

简单的简码创建示例

function customfield_function() {
  return 'i am describing my custom fields name here bla bla';
}
add_shortcode('customfield', 'customfield_function');

[customfield]

更多click这里