Hello again,
Thanks a million for all the suggestions. You’re the best 
winterbits said
function formatter($content) { $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if (preg_match($pattern_contents, $piece, $matches)) { $new_content .= $matches[1]; } else { $new_content .= wptexturize(wpautop($piece)); } } return $new_content; } remove_filter('the_content', 'wpautop'); remove_filter('the_content', 'wptexturize'); add_filter('the_content', 'formatter', 99);[raw]Content without Paragraphs[/raw]
Dude, this thing has some issues. It doubles my content on shortcodes i use it on. Maybe the forum screwed up the code, post it on that thingy website i can’t remember the name, where you post codes and share it with other people.
Update: @itsmattadams – Tried yours, works perfect. Thanks.
itsmattadams said
Put this in functions.php.function remove_wpautop($content) { $content = do_shortcode( shortcode_unautop($content) ); $content = preg_replace( '#^<\/p>|^<br \/>|$#’, ’’, $content ); return $content; }
Example/Usage:
add_shortcode( 'blockquote', 'blockquote_shortcode' ); function blockquote_shortcode( $attr, $content = null ) { $return .= '’; $return .= remove_wpautop($content); $return .= ‘’; return $return; }
This really works great, thank you. However when there is a shortcode inside shortcode it breaks. What may be the reason? How can we fix it?
elemis said
itsmattadams said
This really works great, thank you. However when there is a shortcode inside shortcode it breaks. What may be the reason? How can we fix it?It doesn’t break for me,
do_shortcodeallows shortcodes to be nested. You could provide more details, but make sure you have closed all shortcodes properly.
itsmattadams said
elemis said
itsmattadams saidIt doesn’t break for me,
This really works great, thank you. However when there is a shortcode inside shortcode it breaks. What may be the reason? How can we fix it?do_shortcodeallows shortcodes to be nested. You could provide more details, but make sure you have closed all shortcodes properly.For example when there are columns inside columns it breaks. Or list shortcode inside list shortcode. But if there is a list shortcode inside column shortcode it works without problems.
elemis said
itsmattadams said
elemis saidFor example when there are columns inside columns it breaks. Or list shortcode inside list shortcode. But if there is a list shortcode inside column shortcode it works without problems.
itsmattadams saidIt doesn’t break for me,
This really works great, thank you. However when there is a shortcode inside shortcode it breaks. What may be the reason? How can we fix it?do_shortcodeallows shortcodes to be nested. You could provide more details, but make sure you have closed all shortcodes properly.As far I know, that can’t be fixed.
@elemnis – That’s actually a WordPress shortcode system issue. Until they rewrite the system, we can’t use it.
Thanks guys, we appreciate your support.
@wpCanyonThemes, good luck with the sales on your new template. Especially with the tough and rude clients that don’t really know what they need
that probably will want columns inside columns inside columns inside columns… 
elemis said
Thanks guys, we appreciate your support. @wpCanyonThemes, good luck with the sales on your new template. Especially with the tough and rude clients that don’t really know what they needthat probably will want columns inside columns inside columns inside columns…
![]()
Thanks man, should be up today or tomorrow
Yeah, i’m already nervous about the support, but it’s normal i think, it’s mostly “Thanks, i’m glad you like it. Thanks for buying.” haha 
Might be a bit late, but I just tested itsmattadams’s solution and so far i’m not having troubles with shortcodes inside shortcodes
