问题描述:

Repeater field plugin is purchased in Redux framework. But I am creating it as a custom filed .

I have created 3 fields(title, phone, Textarea) with add more and delete button. In this, I want to add upload button along with that three fields . But I failed to add upload button . I tried a lot but it's not working .

Can you please tell me what is the way to add upload image button in custom field extension.

网友答案:
$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')
    ),
);

Example Usage

This example in based on the example usage provided above. Be sure to change $redux_demo to the value you specified in your opt_name argument.

global $redux_demo;

echo 'First Text Entry: ' . $redux_demo['multi-text'][0];

// The array number of additional entries will increase by one.

相关阅读:
Top