Forums

Wordbook posts Wordpress code for captions in 2.6 (2 posts)

  1. Steve-M-C
    Member
    Posted 1 year ago #

    Just updated to Wordpress 2.6 and Wordbook still works, but if I insert an image with the new caption feature, it seems to get confused and post some of the Wordpress code into Facebook, eg:

    Last part of Dr Horrible online tomorrow. [caption id="" align="aligncenter" width="475" caption="Dr Horrible's Sing-Along Blog"][/...

    Presumably this is down to Wordpress not actually converting the caption into HTML which Wordbook filters out?

  2. Steve-M-C
    Member
    Posted 1 year ago #

    I've found a fix - temporarily at least. In the wordbook.php file, I've added a call to strip_shortcodes() on line 1150, so that it looks like this:

    $excerpt = strip_tags(strip_shortcodes(apply_filters('the_excerpt', $content)));

    This will (I think) remove *all* short codes from the text, so I'm not sure it's the ideal solution, but it works for me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags