我的wordpress代码有一个小问题我需要在我的页面中显示一个wordpress wp_editor,它有一个值数组。值的定义如下
$fields[] = array(
'name' => __('Class', 'my-theme'),
'desc' => __('', 'my-theme'),
'id' => 'class'.$n,
'std' => ( ( isset($class_text[$n]['class']) ) ? $class_text[$n]['class'] : '' ),
'type' => 'text');
当我像上面的数组一样定义我的 wp_editor 时,它不会显示我想要的位置。而是在所有页面中的任何内容之前显示在顶部的所有编辑器。
我为编辑器尝试了以下一组数组:
$fields[] = array(
'name' => __('My Content', 'my-theme'),
'id' => 'sectioncontent'.$n,
'std' => ( ( isset($class_text[$n]['content']) ) ? $class_text[$n]['content'] : '' ),
'type' => wp_editor( '', 'sectioncontent'.$n ));
附上我的问题的图片: