'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;?>

$count, 'cat' => $category, 'orderby' => 'ID', 'order'=>'ASC', 'paged' => $paged); $wp_query_post_advance = new WP_Query($args); ?> have_posts()) {?> have_posts()) { $wp_query_post_advance->the_post();?>
'; the_post_thumbnail(); echo ''; } else { echo ''; echo ''; echo ''; };?>
max_num_pages > 1) { // check if the max number of pages is greater than 1 ?>
'«', 'next_text' => '»') );?>
__('Our Work','advance'), 'subtitle' => __('Check Out Our Work','advance'), 'count' => '6', 'category' => array(), 'content_bg' => 'rgba(8, 162, 134, 0.02)', 'subtitle_textcolor'=>'#176079', 'padtopbottom' =>'2', ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>

" type="text" />

" type="text" />

'ids' )); foreach($categories as $cat) { ?>