In the user profile I provide some wp_editor()
for user can insert some extra information the the problem happen
foreach ($condition as $b) {
$check = $b.$lang;
?>
<div id="tabs-<?php echo $i ?>">
<?php wp_editor(get_the_author_meta($b . $lang, $profile_id), $check, $settings = array('textarea_name' => $b . $lang, 'textarea_rows' => 10));
?>
</div>
<?php
I'm using tab to switch between these wp_editor()
, the problem is the 'textarea_rows' => 10
not apply for all wp_editor()
it just apply for the first editor() .In research I found out that this bug just happen when I using foreach
with wp_editor()
to create some editor if i do it manualy like
<?php wp_editor('', 'test1', $settings = array('textarea_rows' => 10));
wp_editor('', 'test2', $settings = array('textarea_rows' => 5));
?>
then the wp_editor
work nomarlly. Please help why textarea_rows
not work properly when using foreach
?