forever_featured_posts(), 'posts_per_page' => 10, 'ignore_sticky_posts' => 1 ); /** * The Featured Posts query */ $featured = new WP_Query( $featured_args ); /** * Proceed only if published posts exist and this is the blog home page */ if ( ! is_paged() && is_home() ) { /** * We will need to count featured posts starting from zero * to create the slider navigation. */ $post_counter = 0; ?>
have_posts() ) : $featured->the_post(); /** * Increase the counter. */ $post_counter++; /** * Make sure we don't see any posts without thumbnails */ if ( get_the_post_thumbnail() ) { ?>

post_count > 1 ) { wp_enqueue_script( 'forever-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '13-12-2012' ); ?>
    rewind_posts(); /** * Let's roll, again. */ while ( $featured->have_posts() ) : $featured->the_post(); /** * Make sure we don't see any posts without thumbnails */ if ( get_the_post_thumbnail() ) { $post_counter++; if ( 1 == $post_counter ) $class = 'class="active"'; else $class = ''; ?>
  • >
post_count > 1 ?> have_posts() && ! is_paged() && is_home() } // is_array( $featured_posts) ?>