Viewing 1 replies (of 1 total)
  • Thread Starter todaydownloadz

    (@todaydownloadz)

    i think i found the solution
    here the solution for other who are facing the same issue

    Try to add this on your functions.php

    function modify_excerpt( $text ) {
    	$text = preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text);
    	return $text;
    }
    add_filter( 'the_excerpt', 'modify_excerpt' );

    and then send the excerpts via this method and get the output before publishing. something like this

    <?php
    				$postExcerpt = get_the_excerpt();
    
    				$postExcerpt = modify_excerpt($postExcerpt);
    				echo $postExcerpt;
    				?>.

    Hope this will help you guys

    cheers

Viewing 1 replies (of 1 total)
  • The topic ‘how to remove Post UI Tabs shortcode in excerpts’ is closed to new replies.