have_posts()):
$case = 0;
while ( $custom_query->have_posts()) : $custom_query->the_post();
if ( has_post_thumbnail() ) {
$post_id = get_the_ID();
//feature img url
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'thumbnail' );
// get post contant
$title = get_the_title();
$content = get_the_content();
?>
>