ID,'_web_business_meta',TRUE);
$cats = get_categories('hide_empty=0');
$site_cats = array();
$cat_query="";
foreach ( $cats as $categs ) {
if (isset($web_business_meta["categor-".$categs->cat_ID]) && $web_business_meta["categor-".$categs->cat_ID]=="on" ) {
$cat_query.=$categs->cat_ID.",";
}
}
?>
query('showposts='.($web_business_meta['gallery_perpage']+1).'&paged='.$paged.'&cat='.$cat_query);
$c=1;
?>
have_posts()) : $wp_query->the_post();
$posttitle = 'JEWELRY SITE STANDART HEADER POST';
$postid = $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_title = '" . $posttitle . "'" );
if($post->ID==$postid || $c==$web_business_meta['gallery_perpage']+1){
continue;
}
else {
$c++;
}
?>
jQuery('a.".$post->ID."').click(function(e){
//alert(str);
modal.open({content: \"";
echo addslashes(expert_display_thumbnail(800,550));
echo "\"});
e.preventDefault();
});
";
}
else {
$str=wp_get_attachment_url( get_post_thumbnail_id($post->ID));
echo "";
}
?>