function vw_render_spc_section_post_slider($args) { extract($args); $number_of_slide = get_post_meta($page_id, $field_prefix . '_number', true); $category = get_post_meta($page_id, $field_prefix . '_category', true); $posts_order = get_post_meta($page_id, $field_prefix . '_posts_order', true); printf($before_section, 'post-slider-section'); echo '<div class="container"><div class="row"><div class="col-md-12">'; $slider_args = array('cat' => $category, 'posts_order' => $posts_order, 'number_of_post' => $number_of_slide * 3, 'template' => 'large'); vw_the_post_slider($slider_args); echo '</div></div></div>'; echo $after_section; }
function vw_the_category_post_slider() { $cat_ID = vw_get_archive_category_id(); $posts_order = vw_get_category_option($cat_ID, 'category_post_slider'); $args = array('cat' => $cat_ID, 'posts_order' => $posts_order, 'before' => '<div class="vw-category-post-slider">', 'after' => '</div>'); vw_the_post_slider($args); }