The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Post UI Tabs
how to remove Post UI Tabs shortcode in excerpts (2 posts)

  1. todaydownloadz
    Posted 2 years ago #

    i am trying to remove post ui shortcode in excerpts. please anyone have done this please help me .

    [tab name="xxxxxx"] are added to the exceprts always. is there any settings to solve this issue ?

    thank you


  2. todaydownloadz
    Posted 2 years ago #

    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

    				$postExcerpt = get_the_excerpt();
    				$postExcerpt = modify_excerpt($postExcerpt);
    				echo $postExcerpt;

    Hope this will help you guys


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post UI Tabs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic