E
E
Eugene2018-03-17 10:04:10
WordPress
Eugene, 2018-03-17 10:04:10

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
          )
            ),

I deduce in the subject like this:
echo $webcorp_options['fp-about-text'];
Tell me good people, what's the gag?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-03-17
@orchanin

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
          )

Now in the template where we display the field, you need to do this:
$fpabouttext = $webcorp_options['fp-about-text'];
                echo  wpautop($fpabouttext);

Found here
He asked himself answered, but maybe someone will come in handy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question