$hm_slider_category,
'posts_per_page' => 5,
'ignore_sticky_posts' => true
)
)
?>
have_posts() ) :
while( $slider_posts->have_posts() ) : $slider_posts->the_post();
if ( has_post_thumbnail() ) {
$thumb_id = get_post_thumbnail_id();
$featured_url_array = wp_get_attachment_image_src( $thumb_id, 'hitmag-featured' );
$featured_image_url = $featured_url_array[0];
} else {
$featured_image_url = get_template_directory_uri() . '/images/slide.jpg';
}
?>
-
rewind_posts(); ?>
have_posts() ) :
while( $slider_posts->have_posts() ) : $slider_posts->the_post();
if ( has_post_thumbnail() ) {
$thumb_id = get_post_thumbnail_id();
$thumb_url_array = wp_get_attachment_image_src( $thumb_id, 'hitmag-thumbnail' );
$thumb_url = $thumb_url_array[0];
} else {
$thumb_url = get_template_directory_uri() . '/images/slide-thumb.jpg';
}
?>
-