>

', ']]>', $content); $pattern = '/]*>/Ui'; preg_match_all($pattern, $content , $matches, PREG_SET_ORDER); preg_match_all('{}',$content,$attachment, PREG_SET_ORDER); /* preg_match_all('%]+rel=("([^"]+)"|\'([^\']+)\')[^>]*>%i', $content,$attachment);*/ //print_r($attachment[0][1]); //attachment wp-att-293 //print_r($attachment[1][1]); //attachment wp-att-294 for ($i = 0; $i <= (count($matches) - 1); $i++) { $ancien = $matches[$i][0]; //$new_img = $ancien . $ajout; $new_img = $ancien . mod_image($i); $content = str_replace($ancien, $new_img, $content); } echo $content; ?> '' ) ); ?>
', '' ); ?>