have_posts() ) { $service_query->the_post(); $image = wp_get_attachment_url( get_post_thumbnail_id($post->ID)); $img_arr[] = $image; $id_arr[] = $post->ID; } } } ?> post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); ?> ID)); if( !empty($image) ) { ?>