Incase people have the same problem… I fixed the issue.
We needed to specify a new query object
$my_query = new WP_Query('showposts');
He’s my final AJAX loop
$my_query = new WP_Query('showposts');
if ($my_query->have_posts()) :
while ($my_query->have_posts()) : $my_query->the_post();
if (get_custom('featured') == 'true'){
$details[] = array
(
"details" => array
(
"image" => get_custom('featured_img'),
"title" => get_the_title(),
"link" => get_permalink(),
)
);
}
endwhile;
endif;