'mh_magazine_lite_tabbed', 'description' => esc_html__('MH Tabbed widget showing your latest posts, tags and comments.', 'mh-magazine-lite') ) ); } function widget($args, $instance) { $defaults = array('title' => ''); $instance = wp_parse_args($instance, $defaults); echo $args['before_widget']; if (!empty($instance['title'])) { echo $args['before_title'] . esc_html(apply_filters('widget_title', $instance['title'])) . $args['after_title']; } ?>
'post', 'posts_per_page' => 10, 'ignore_sticky_posts' => 1)); if ($latest_posts->have_posts()) { echo '
25, 'smallest' => 12, 'largest' => 12, 'unit' => 'px')); ?>
query(array('number' => 3, 'status' => 'approve')); if ($comments) { echo '
''); $instance = wp_parse_args($instance, $defaults); ?>