Answer the question
In order to leave comments, you need to log in
Output text without tags from editor field ReduxOptionFramework for WP?
I use the editor field in the theme settings (with the WP editor) I write text in it divided into paragraphs <p>, but for some reason the text is displayed without tags on the site. I studied the documentation, but could not master the solution. The field settings are:
array(
'id' => 'fp-about-text',
'type' => 'editor',
'title' => __('Текст о компании', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'default' => '',
'args' => array(
'teeny' => false,
'quicktags' => false,
'textarea_rows' => 10
)
),
echo $webcorp_options['fp-about-text'];
Answer the question
In order to leave comments, you need to log in
Well, doper, how can I do it:
add an argument to args: It will turn
out like this:
'args' => array(
'wpautop' => true,
'teeny' => false,
'quicktags' => false,
'textarea_rows' => 10
)
$fpabouttext = $webcorp_options['fp-about-text'];
echo wpautop($fpabouttext);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question