‘post’, ‘ignore_sticky_posts’ => 1, ‘posts_per_page’ => ‘5’, ‘meta_key’ => ‘header_slider’, ‘meta_value’ => ‘on’);
} elseif($post_order == ‘rand’ || $post_order == ‘no_slider_rand’) {
$args = array(‘post_type’ => ‘post’, ‘ignore_sticky_posts’ => 1, ‘posts_per_page’ => ‘5’, ‘meta_key’ => ‘header_slider’, ‘meta_value’ => ‘on’, ‘orderby’ => ‘rand’);
} else {
$args = array(‘post_type’ => ‘post’, ‘ignore_sticky_posts’ => 1, ‘posts_per_page’ => ‘5’);
};
$top_slider = new WP_Query($args);
$post_count = $top_slider->post_count;
if ($top_slider->have_posts()) :
?>
‘; ?>
‘share_button_design_type2’,
‘show_hatebu’ => false,
‘show_googleplus’ => false,
);
get_template_part(‘share_button_count_only’);
} else {
if (has_excerpt()) { echo ‘‘; the_excerpt(); echo ‘‘; } else { echo ‘‘; if($i ==1) { new_excerpt(180); } else { new_excerpt(40); }; echo ‘‘; };
};
?>
‘post’, ‘ignore_sticky_posts’ => 1, ‘posts_per_page’ => ‘5’, ‘offset’ => ‘5’, ‘meta_key’ => ‘header_slider’, ‘meta_value’ => ‘on’);
} else {
$args = array(‘post_type’ => ‘post’, ‘ignore_sticky_posts’ => 1, ‘posts_per_page’ => ‘5’, ‘meta_key’ => ‘header_slider’, ‘meta_value’ => ‘on’, ‘orderby’ => ‘rand’);
};
$top_slider2 = new WP_Query($args);
$post_count = $top_slider2->post_count;
if ($top_slider2->have_posts()) :
?>
‘; ?>
‘share_button_design_type2’,
‘show_hatebu’ => false,
‘show_googleplus’ => false,
);
get_template_part(‘share_button_count_only’);
} else {
if (has_excerpt()) { echo ‘‘; the_excerpt(); echo ‘‘; } else { echo ‘‘; if($i ==1) { new_excerpt(180); } else { new_excerpt(40); }; echo ‘‘; };
};
?>
‘post’, ‘ignore_sticky_posts’ => 1, ‘posts_per_page’ => ‘5’, ‘offset’ => ’10’, ‘meta_key’ => ‘header_slider’, ‘meta_value’ => ‘on’);
} else {
$args = array(‘post_type’ => ‘post’, ‘ignore_sticky_posts’ => 1, ‘posts_per_page’ => ‘5’, ‘meta_key’ => ‘header_slider’, ‘meta_value’ => ‘on’, ‘orderby’ => ‘rand’);
};
$top_slider3 = new WP_Query($args);
$post_count = $top_slider3->post_count;
if ($top_slider3->have_posts()) :
?>
‘; ?>
‘share_button_design_type2’,
‘show_hatebu’ => false,
‘show_googleplus’ => false,
);
get_template_part(‘share_button_count_only’);
} else {
if (has_excerpt()) { echo ‘‘; the_excerpt(); echo ‘‘; } else { echo ‘‘; if($i ==1) { new_excerpt(180); } else { new_excerpt(40); }; echo ‘‘; };
};
?>