'advance_front_posts postsblck', 'description' => __( 'This Widget lets you display WordPress Posts, Pages and Woocommerce Products.', 'advance' ), ) ); } /* ---------------------------- */ /* ------- Display Widget -------- */ /* ---------------------------- */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = isset( $instance['title'] ) ? $instance['title'] : __('Our Work', 'advance'); $subtitle = isset( $instance['subtitle'] ) ? $instance['subtitle'] : __('Check Out Our Portfolio', 'advance'); $count = isset( $instance['count'] ) ? absint($instance['count']) : '6'; $category = isset( $instance['category'] ) ? $instance['category'] : ''; $content_bg = isset( $instance['content_bg'] ) ? $instance['content_bg'] : 'rgb(255, 255, 255)'; $subtitle_textcolor = isset( $instance['subtitle_textcolor'] ) ? $instance['subtitle_textcolor'] : ''; $padtopbottom = isset( $instance['padtopbottom'] ) ? $instance['padtopbottom'] : ''; /* Before widget (defined by themes). */ echo $before_widget;?>
" type="text" />
" type="text" />
'ids' ));
foreach($categories as $cat) {
?>