OrganicBeeMedia said
[...] cough bad practice…
ThemeForest approved 
digitalimpact said
OrganicBeeMedia saidThemeForest approved
[...] cough bad practice…![]()
its more of a UX bad practice than code bad practice
also dont get me started
digitalimpact said
OrganicBeeMedia said
[...] cough bad practice…ThemeForest approved
Yeah, but this technique works fine, but it’s more a hack than a “legitime” technique, since it disable filters of WordPress.
I really liked the @OrganicBeeMedia solution, looks really easier than the filter technique.
I’ll test it here, thanks for the suggestion OrganicBeeMedia.
Cheers, Rafael Angeline
Totally agree it’s not very convenient to have to wrap shortcodes with another shortcode.
@ Chris – need to work on my sarcasm.
digitalimpact said
Totally agree it’s not very convenient to have to wrap shortcodes with another shortcode. @ Chris – need to work on my sarcasm.
its to hard to project through type, maybe we can invent tone of voice typing?

OrganicBeeMedia said
you want to filter your shortcodes that dont need to be texturized through a filter…add_filter( 'no_texturize_shortcodes', 'your_prefix_no_texturize' ); function your_prefix_no_texturize( $fix_stuff ) { $fix_stuff[] = array('make' , 'this', 'a', 'array'); return $fix_stuff; }see wp-includes/formating.php line 60
ps that original code is NOT mine
NOTE : i haven’t tested this and typed it in here so there may be errors
so to get back on topic and make myself a little clearer
the array is spouse to be an array of shortcodes that you don’t want texturized, why because not all shortcodes need it removed
I use this.
function framework_remove_wpautop( $content ) {
$content = do_shortcode( shortcode_unautop( $content ) );
$content = preg_replace( '#^<\/p>|^<br />|<p>$#', '', $content );
return $content;
}
</p>- Sold between 250 000 and 1 000 000 dollars
- Exclusive Author
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- Beta Tester
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
Hi guys,
never interfere/remove wp core filters. Also if your code work for your theme, it can break many plugins.
Build your themes and respect WordPress!
Parker
ParkerAndKent said
Hi guys,never interfere/remove wp core filters. Also if your code work for your theme, it can break many plugins.
Build your themes and respect WordPress!
Parker
Hey Parker,
if you actually read the code he’s using you’ll see thats not removing wpautop at all its moving the position its called.
actually neither are the ones Ive said are bad practice, well they kind of are but they are forcing users to wrap there shortcodes [raw][shortcde][/raw]
now the tittle of the threads misleading as hes not actually asking how to remove wpautop(as that code works) rather than wptexturize which there are filter you can run any type of tag through i.e html tags are also ran through the filters by default
no_texturize_shortcodes & no_texturize_tag located in multiple places in the core but specifically(where we’d need it) in wp-includes/formating.php in the wptexturize function 
