Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: image formatting trouble


Burt Adsit
Participant

@burtadsit

@kellylind I’m not running the home theme but it sounds to me like that is what happens with an excerpt that isn’t being filtered completely. The recent blog posts widget displays an excerpt. It’s not stripping the [caption][/caption]s because bp uses the standard wp striptags() function.

If you are the adventurous type I found this on the wp forums. Same problem you have.

$text = preg_replace( '|[(.+?)](.+?[/\1])?|s', '', $text )

Looks like it’ll work. Ya gotta mod the bp core to get it to work though. I’ll put in a ticket for this in Trac. You can wait or you can modify bp_create_excerpt() in bp-core.php.

Skip to toolbar