Forum Replies Created

Viewing 1 replies (of 1 total)
  • saturnino

    (@saturnino)

    Hi
    this worked for me in wordpress 2.8.5

    // Hack to switch regular expression for 2.8.5
    				$pattern = '/img src=(.*)/';
    
    				if(!preg_match($pattern, $item['description'], $imgUrlMatches)) {
    
    					continue;
    				}
    
    				$url_array = explode(' ',$imgUrlMatches[1]);
    				$baseurl = str_replace("_m.jpg", "", $url_array[0]);
Viewing 1 replies (of 1 total)