Title: [Plugin: Options Framework] wpautop not working
Last modified: August 20, 2016

---

# [Plugin: Options Framework] wpautop not working

 *  Resolved [Ross Wintle](https://wordpress.org/support/users/magicroundabout/)
 * (@magicroundabout)
 * [14 years ago](https://wordpress.org/support/topic/plugin-options-framework-wpautop-not-working/)
 * Hi,
 * I’m sure I’m missing something really obvious here.
 * I’m using plugin v1.1. on WordPress v3.3.2. It’s a bit of a weird config because
   I’m running it on a sub-domain-based Multi-site on my localhost, but I can’t 
   see that that would make a difference in my problem.
 * I’ve got an editor field that’s not doing wpautop, despite the wpautop setting
   being true. It’s not just a display issue. I’ve checked the database and the 
   option is not being set with p tags.
 * My code looks like:
 *     ```
       function optionsframework_options() {
   
       	$wp_editor_settings = array(
       		'wpautop' => true, // Default
       		'textarea_rows' => 5,
       		'tinymce' => array( 'plugins' => 'wordpress' )
       	);
   
       	$options = array();
   
       	$options[] = array(
       		'name' => 'Front Page',
       		'type' => 'heading');
   
       	$options[] = array(
       		'name' => 'Front Page Text',
       		'desc' => 'Text for the front page image section',
       		'id' => 'front_page_text',
       		'type' => 'editor',
       		'std' => "Standard text\n\non two lines",
       		'settings' => $wp_editor_settings );
   
       	return $options;
   
       }
       ```
   
 * Any thoughts on what might be stopping wpautop working?
 * Thanks
 * [http://wordpress.org/extend/plugins/options-framework/](http://wordpress.org/extend/plugins/options-framework/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Ross Wintle](https://wordpress.org/support/users/magicroundabout/)
 * (@magicroundabout)
 * [14 years ago](https://wordpress.org/support/topic/plugin-options-framework-wpautop-not-working/#post-2775350)
 * Oh, OK. Fixed this.
 * Didn’t realise that wpautop intentionally stores data in database without <p>
   tags (apparently?), and you need to apply filters to the option to get <p>’s 
   added back in…something like:
 * `echo apply_filters('the_content', of_get_option('front_page_text'));`
 *  [Mary](https://wordpress.org/support/users/trekvisual/)
 * (@trekvisual)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-options-framework-wpautop-not-working/#post-2775455)
 * Wow, thanks so much for posting this solution. I thought I was missing something
   too – well, I guess I was! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Options Framework] wpautop not working’ is closed to new replies.

 * ![](https://ps.w.org/options-framework/assets/icon-256x256.png?rev=977481)
 * [Options Framework](https://wordpress.org/plugins/options-framework/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/options-framework/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/options-framework/)
 * [Active Topics](https://wordpress.org/support/plugin/options-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/options-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/options-framework/reviews/)

## Tags

 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [wpautop](https://wordpress.org/support/topic-tag/wpautop/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mary](https://wordpress.org/support/users/trekvisual/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-options-framework-wpautop-not-working/#post-2775455)
 * Status: resolved