default_data()); } //set query args to show specified amount or show all posts from particular category. $post_ids = array(); if(absint($the_business_wp_option['testimonial_cat'])!=''){ array_push($post_ids,absint($the_business_wp_option['testimonial_cat'])); } if(absint($the_business_wp_option['testimonial_cat2'])!=''){ array_push($post_ids,absint($the_business_wp_option['testimonial_cat2'])); } if(absint($the_business_wp_option['testimonial_cat3'])!=''){ array_push($post_ids,absint($the_business_wp_option['testimonial_cat3'])); } $args = array( 'post_type' => 'post' , 'post__in' => $post_ids , 'orderby' => 'post__in', 'order' => 'DESC') ; $loop = array(); if (count($post_ids)!='0'){ $loop = get_posts($args); } $the_business_wp_class = ''; if($the_business_wp_option['testimonial_section_image']!=''){ $the_business_wp_class = 'sectionoverlay'; } ?>

'.esc_html($my_post->post_title).'

'); ?>
ID); $alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true); if($alt == ''){ $alt = $my_post->post_title; } if($thumb_id){ echo "".esc_attr($alt).""; } ?>
post_content; echo apply_filters('the_content', $content); ?>
'; ?>