109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

Hello again,

Thanks a million for all the suggestions. You’re the best :D

1383 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says

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.

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

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?

707 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
ChillThemes says


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_shortcode allows shortcodes to be nested. You could provide more details, but make sure you have closed all shortcodes properly.

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says



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_shortcode allows 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.

707 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
ChillThemes says




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_shortcode allows 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.

As far I know, that can’t be fixed.

1383 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says

@elemnis – That’s actually a WordPress shortcode system issue. Until they rewrite the system, we can’t use it.

109 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Beta Tester
  • Referred between 1000 and 1999 users
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
  • Exclusive Author
elemis says

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… :)

1383 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says

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… :)

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

346 posts Gambit
  • Bought between 100 and 499 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Philippines
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 50 000 and 100 000 dollars
bfintal says

Might be a bit late, but I just tested itsmattadams’s solution and so far i’m not having troubles with shortcodes inside shortcodes

by
by
by
by
by
by