I just tested with 2.0.3 and I can’t reproduce your issue. What version of OT are you using?
Does the account your using have admin privileges? It might be an issue where you’re not allowed to post unfiltered HTML.
I have Administrator privileges.
Upgraded to 2.03 and disabled Ultimate TINYMCE and it still adds <p> and </br> to Textarea Simple. Any other thoughts?
Are you saying it’s adding that to the textarea inside the theme options page or when you echo it out?
I can’t for the life of me reproduce your issue. Can you send me login details to derek[at]valendesigns.com and I’ll take a look at it?
Did this issue get resolved? I am having the same problem: Textarea Simiple is adding <p> tags regardless. I am not using any TinyMCE plugins.
Glad to see that I’m not the only one with this issue since upgrading to 2.0.5 from 1.something. OptionTree defaulted the Custom CSS type to “TextArea”. I figured changing it to “TextArea Simple” would fix the problem but I’m still seeing inappropriate <p> tags.
I’m not sure why some people are seeing p tags in their textarea-simple or CSS. I can’t reproduce this anywhere. I’ve gotten screenshots from people then logged into their account for myself and they aren’t there. It’s a bit difficult to fix if I can’t get see it in action.
It did not get resolved and it turns our that though the <p> tag was not being saved to the database the TextArea Simple was still making changes to the code by adding slashes which was of course breaking the CSS. The only way around it is to change it to a plain old Text field. You won’t be able to edit in any meaningful way but it also won’t break you CSS code.
I can understand your frustration @derek.
I found this and it seemed to solve the problem with Textarea Simple, haven’t tried it out on the regular Textarea: http://codex.wordpress.org/Function_Reference/wpautop
You’re frustrated with me? The textarea simple already has the wpautop set to false when calling the wp_editor function, so I’m not sure how you are altering something that’s already set to false?
@derek You misunderstood man. This whole issue must be frustrating for you, not being able to replicate the issue.
On the issue to the wpautop, I am looking through what else could have caused the change now.
Yeah, I wasn’t sure if I was meant to read that literally or not lol. What code did you use to get the p tags to disappear?
I have this for the option tree call:
<p class="foo"><?php if (function_exists('get_option_tree')) { get_option_tree('bar','', true ); } ?></p>
In my functions.php file I am using this from the WP codex:
remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
While I did see that the wpautop was set to false, I believe something else in my theme may be causing a conflict. The Textarea Simple still adds the paragraph tags, but after adding the above snippets, it seemed to be overridden by the class added to the paragraph tag. Still working to find the actual reason for the change.
A very wild thought:
get_option_tree();
This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement.
Use ot_get_option()instead.