(int) hybrid_get_setting( 'featured_posts' ), 'post_status' => 'publish', 'no_found_rows' => true, 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-aside', 'post-format-audio', 'post-format-chat', 'post-format-quote', 'post-format-status' ), 'operator' => 'NOT IN' ) ) ); /** * Select posts from the selected categories * or use Sticky Posts */ if ( hybrid_get_setting( 'featured_category' ) ) { $feature_query['cat'] = hybrid_get_setting( 'featured_category' ); $feature_query['ignore_sticky_posts'] = 1; } else { $feature_query['post__in'] = get_option( 'sticky_posts' ); } /* Fire the query */ $loop = new WP_Query( apply_filters( 'cakifo_slider_query', $feature_query ) ); // Filter the query with the `cakifo_slider_query` filter ?> have_posts() ) : ?>

have_posts() ) : $loop->the_post(); ?>
'slider', 'attachment' => false, 'meta_key' => null, // Don't allow to set thumbnail with custom field. That way you can have 2 thumbnails. One for the post and one for the slider 'image_class' => 'thumbnail', 'echo' => false ) ); /* Get the size for the 'slider' image size */ $thumbnail_size = cakifo_get_image_size( 'slider' ); /* There's a thumbnail! */ if ( $thumbnail ) { echo $thumbnail; /* Try to embed a video from the post content */ } elseif ( has_post_format( 'video' ) ) { echo '
' . post_format_tools_get_video( array( 'width' => $thumbnail_size['width'] ) ) . '
'; } endif; ?>
→', 'cakifo' ); ?>