Repeater字段插件在Redux框架中购买。但我将其创建为自定义文件。
我已经创建了3个字段(标题,电话,文本区)添加更多和删除按钮。在这篇文章中,我想添加上传按钮以及这三个字段。但我没能添加上传按钮。我试了很多,但都不起作用。
你能告诉我在自定义字段扩展中添加上传图像按钮的方法吗。
$fields = array(
'id'=>'multi-text',
'type' => 'multi_text',
'title' => __('Multi Text Option - Color Validated', 'textdomain'),
'validate' => 'color',
'subtitle' => __('If you enter an invalid color it will be removed. Try using the text "blue" as a color. ;)', 'texdoma'),
'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo')
),
);
示例用法
中的此示例基于上面提供的示例用法。请确保将$redux_demo更改为您在opt_name参数中指定的值
global $redux_demo;
echo 'First Text Entry: ' . $redux_demo['multi-text'][0];
//附加条目的数组数量将增加一。