Connect with us

#Worldwide

Facebook

Instagram



Advertisement
'mvp_tabber_widget', 'description' => esc_html__('A widget that displays your latest posts, popular posts, and video posts in a tabber widget.', 'zox-news') ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'mvp_tabber_widget' ); /* Create the widget. */ $this->__construct( 'mvp_tabber_widget', esc_html__('Zox News: Side Tabber Widget', 'zox-news'), $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ global $post; $first_title = $instance['first_title']; $first = $instance['first']; $second_title = $instance['second_title']; $second = $instance['second']; $third_title = $instance['third_title']; $third = $instance['third']; $popular_days = $instance['popular_days']; $number = $instance['number']; /* Before widget (defined by themes). */ echo $before_widget; ?>
$number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

$number, 'ignore_sticky_posts'=> 1, 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_key' => 'post_views_count', 'date_query' => array( array( 'after' => $popular_days_ago )) )); while($recent->have_posts()) : $recent->the_post(); ?>
cat_name ); ?>

cat_name ); ?>

array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-video' )), 'posts_per_page' => $number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-gallery' )), 'posts_per_page' => $number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

$number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

$number, 'ignore_sticky_posts'=> 1, 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_key' => 'post_views_count', 'date_query' => array( array( 'after' => $popular_days_ago )) )); while($recent->have_posts()) : $recent->the_post(); ?>
cat_name ); ?>

cat_name ); ?>

array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-video' )), 'posts_per_page' => $number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-gallery' )), 'posts_per_page' => $number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

$number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

$number, 'ignore_sticky_posts'=> 1, 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_key' => 'post_views_count', 'date_query' => array( array( 'after' => $popular_days_ago )) )); while($recent->have_posts()) : $recent->the_post(); ?>
cat_name ); ?>

cat_name ); ?>

array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-video' )), 'posts_per_page' => $number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => 'post-format-gallery' )), 'posts_per_page' => $number, 'ignore_sticky_posts'=> 1 )); if (have_posts()) : while (have_posts()) : the_post(); ?>
cat_name ); ?>

cat_name ); ?>

5, 'popular_days' => 30, 'first' => 'latest', 'second' => 'popular', 'third' => 'video', 'first_title' => 'Latest', 'second_title' => 'Popular', 'third_title' => 'Videos' ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>