'galleries','post__in'=>array($url[2]))); if($query->have_posts()){ while($query->have_posts()){ $query->the_post(); echo ""; echo "
"; $id = $_POST["galleryID"]; $html .= "
".getSafe("wpcf-ga-description", false, $id)."
"; $date = new DateTime(); $date -> setTimestamp( get_the_time('U', $id) ); $html .= "
".$date -> format('F j, Y')."
"; $html .= "
"; $gal = getSafe("wpcf-ga-image", false, $id, false); if (count($gal) > 1) { $html .= "
"; $html .= "
<< Back  |  
Next >>"; $html .= "
"; } $i = 1; foreach ($gal as $img) { if ($i == 1) $mode = "gshow"; else $mode = "ghide"; $html .= ""; $i++; } $i--; $html .= "
"; $html .= "
"; $html .= "
"; $html .= "Photos 1 of $i"; $html .="
"; // $html .="
Close Window
"; $html .= "
"; $html .= "
"; $html .= ""; echo $html; } } ?>