Cytat
<div class='klasa'><a rel="nofollow" href="http://adresik/01_big.jpg" class=powieksz><img src="http://adresik/01.jpg" alt="Opis do obrazka" title="Tytuł obrazka">
sam adres http://adresik/01.jpg, kłopot w tym że mam różne opisy i tytuły, więc nie tylko src jest zmienne, ale również href, alt i title.
znalazłem na jakiejś stronie taki kod:
// get the featured image $image = get_the_post_thumbnail($photos[$i]->ID); // get the src for that image $pattern = '/src="([^"]*)"/'; $src = $matches[1];
jednak nie zwraca mi on adresu..