'advance_front_posts postsblck', 'description' => __( 'This Widget lets you display WordPress Posts', 'advance' ), 'customize_selective_refresh' => true, ) ); } /* ---------------------------- */ /* ------- 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'] : '#edf3f4'; $subtitle_textcolor = isset( $instance['subtitle_textcolor'] ) ? $instance['subtitle_textcolor'] : ''; $padtopbottom = isset( $instance['padtopbottom'] ) ? $instance['padtopbottom'] : ''; /* Before widget (defined by themes). */ echo $before_widget;?>

'post', 'posts_per_page'=>$count, 'cat' => $category, 'orderby' => 'ID', 'order'=>'ASC', 'paged' => $paged, ); $wp_query = new WP_Query($advance_args); ?> have_posts() ) : ?> have_posts() ) : $wp_query->the_post(); ?>
'; the_post_thumbnail(); echo ''; } else { echo ''; echo ''; echo ''; };?>
str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages ) ); ?>
__('Our Work','advance'), 'subtitle' => __('Check Out Our Work','advance'), 'count' => '6', 'category' => array(), 'content_bg' => '#edf3f4', 'subtitle_textcolor'=>'#176079', 'padtopbottom' =>'2', ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>

" type="text" />

" type="text" />

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