select id
from t
where (meta_key = 'color' and meta_value = 'red') or
(meta_key = 'price' and meta_value = '10')
group by id
having count(distinct meta_key) = 2;
(meta_key = 'price' and meta_value > 100 and meta_value <= 100500)
add_action( 'wp_ajax_viewCount', 'getPostViews' );
jQuery.post(ajax_object.ajax_url,{action:viewCount,postID:jQuery('.post').attr('id'});
<div id="post-234" class="post"><?php the_content(); ?></div>