have_posts() ) { $service_query->the_post(); $id_arr[] = $post->ID; } } } ?> post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); ?>
ID)); $thumbnail_id = get_post_thumbnail_id( $post->ID ); $alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true); if( !empty($image) ) { ?> <?php echo esc_attr($alt); ?>