function sp_posts_sc($atts, $content = null) { extract(shortcode_atts(array('post_type' => null, 'numberposts' => null, 'excerpt' => true), $atts)); return sp_post_type_highlight($post_type, $numberposts, $excerpt); }
wp_reset_postdata(); ?> </ul> </section> <!-- #featured-slideshow --> <section id="welcome-msg"> <p><?php echo $home_meta['sp_welcome_msg'][0]; ?> </p> </section> <!-- #welcome-msg --> <section id="facilities"> <?php echo sp_post_type_highlight('facility', $home_meta['sp_facility_num'][0]); ?> </section> <!-- #facilities --> <section id="testimonial"> <p><img src="<?php echo SP_ASSETS_THEME; ?> images/quote.png" alt=""/></p> <?php $args = array('post_type' => 'testimonial', 'posts_per_page' => 1, 'post_status' => 'publish'); $custom_query = new WP_Query($args); ?> <?php while ($custom_query->have_posts()) { $custom_query->the_post();