Код: Выделить всё
my_contentфактическое:
Код: Выделить всё
This is some text
Another line of text
< /code>
ожидается: < /p>
This is some text
Another line of text
< /code>
Я могу обойти это, добавив фильтр the_content: < /p>
echo apply_filters('the_content', $my_content);
Код: Выделить всё
$flexible_content = get_field('flexible_content');
foreach ($flexible_content as $row) {
switch ($row['acf_fc_layout']) {
case 'my_group':
$my_group = $row['my_group'];
$my_content = $row['my_content'];
echo apply_filters('the_content', $my_content);
// echo $my_content;
break;
}
}
Почему поле Wysiwyg внутри клонированной группы иногда выводит без тегов? Есть ли лучший способ справиться с этим, чем использование фильтра_конат ?
Подробнее здесь: https://stackoverflow.com/questions/797 ... iwyg-field
Мобильная версия