I am running some ajax on my wordpress site that looks like this,
$posts = get_posts($postquery); ob_start(); if(!empty($posts)) { foreach($posts as $post) {