__( 'Populate your sidebar with up to 5 posts from a tag category.', 'woothemes' ) ); parent::__construct(false, __('Bueno Featured Posts', 'woothemes'),$widget_ops); } function widget($args, $instance) { $tag_id = $instance['tag_id'] ?? null; $title = $instance['title'] ?? null; $content = $instance['content'] ?? null; $tag_name = get_term_by('id', $tag_id, 'post_tag'); $string = "tag=" . ( $tag_name->slug ?? '' ) ."&showposts=5"; $posts = get_posts($string); if($title == ''){ $title = 'Featured Posts'; } remove_filter( 'the_content', 'polldaddy_show_rating', 5 ); remove_filter( 'the_excerpt', 'polldaddy_show_rating_excerpt_for_real' ); remove_filter( 'the_content', 'sharing_display', 19 ); remove_filter( 'the_excerpt', 'sharing_display', 19 ); global $post; ?>