• Dear Sir/Madam,

    your plugin has a little problem for caption.

    please add the following code into your plugin:

    $content = preg_replace(‘/\[caption .+?\]/’, ‘<figure>’, $content);

    $content = preg_replace(‘/\[\/caption\]/’, ‘</figure>’, $content);

    $content = preg_replace(‘/(<figure><img .+?>)(.+?)(<\/figure>)/’, ‘${1}<figcaption>$2</figcaption>${3}’, $content);

The topic ‘Please update your plugin code’ is closed to new replies.