Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    Thread Starter roelapp

    (@roelapp)

    Yep!

    Plugin Contributor Alex Gor

    (@alexgff)

    Add code to finctions.php file of your active theme

    
    add_filter( 'do_shortcode_tag', 'filter__do_shortcode_tag', 10, 4) ;
    function filter__do_shortcode_tag( $output, $tag, $attr, $m ){
    	
    	preg_match_all( '/{:[a-z]{2}}(.*){:}/m', $output, $matches ); 
    
    	$matches = $matches[0];
    	
    	if ( empty( $matches ) ) {
    		return $output;
    	}
    	
    	foreach( $matches as $match ) {
    		$output = str_replace( $match, WPGlobus_Core::text_filter($match, WPGlobus::Config()->language), $output );
    	}
    	
    	return $output;
    	
    }
    
    Thread Starter roelapp

    (@roelapp)

    Unfortunately, it didn’t do the trick for me. I added it to the functions.php of my Child-Theme.

    Plugin Contributor Alex Gor

    (@alexgff)

    If you are using shortcodes to output it will be work.
    I checked on my test site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPGlobus + Ultimate FAQS’ is closed to new replies.