Shortcode in bigtitle nsphover

January 2013 WordPress Theme
GK User
Fri Mar 15, 2013 3:10 am
Like it says...there is shortcode showing in the blue slider.

Any way to prevent that OTHER than not using captions?

Take a look: http://dundeeonline.com
User avatar
Fresh Boarder

GK User
Fri Mar 15, 2013 5:02 am
I have tried:

function remove_shortcode_from_index($content) {
if ( is_home() ) {
$content = strip_shortcodes( $content );
}
return $content;
}
add_filter('the_content', 'remove_shortcode_from_index');

It has not worked. I do not know what file generates the homepage.
User avatar
Fresh Boarder

GK User
Fri Mar 15, 2013 8:20 am
In the widgets.nsp.php file I have tried to edit the code:
Code: Select all
function custom_excerpt($text = '') {
   $raw_excerpt = $text;
   if ( '' == $text ) {
      $text = get_the_content('');
                // $text = strip_shortcodes( $text );
      $text = do_shortcode( $text );
      $text = apply_filters('the_content', $text);
      $text = str_replace(']]>', ']]>', $text);
      $excerpt_length = apply_filters('excerpt_length', 55);
      $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
      $text = wp_trim_words( $text, $excerpt_length, $excerpt_more );
   }
   return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
}
remove_filter( 'get_the_excerpt', 'wp_trim_excerpt'  );
add_filter( 'get_the_excerpt', 'custom_excerpt'  );


I have gotten no changes at all from the system.
User avatar
Fresh Boarder

GK User
Fri Mar 15, 2013 7:28 pm
Hi,

Please just apply this fix from Meet GavernWP 1.7 (work in progress): https://github.com/GavickPro/Meet-Gaver ... 92243a2263
User avatar
Administrator

GK User
Fri Mar 15, 2013 9:03 pm
Worked wonderfully. Thank you.
User avatar
Fresh Boarder


cron