query('showposts='.($web_business_meta['gallery_perpage']+1).'&paged='.$paged.'&cat='.$cat_query);
$c=1;
while ($wp_query->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++;
}
?>
ID );
$thumb_url=wp_get_attachment_image_src($tumb_id,'full');
$thumb_url=$thumb_url[0];
?>