'date', // portfolio orderby 'order' => 'DESC', // portfolio order 'exclude' => ( isset($cat_excludes) && !empty($cat_excludes) ? implode(',', $cat_excludes ) : '' ), // comma separated portfolio category ids 'include' => ( isset($cat_include) && !empty($cat_include) ? implode(',', $cat_include ) : '' ), // comma separated portfolio category ids 'column' => wpb_fp_get_option( 'wpb_fp_column_', 'wpb_fp_general', 4 ), // 2, 3, 4, 6 ), $atts)); $wpb_fp_number_of_post = wpb_fp_get_option( 'wpb_fp_number_of_post_', 'wpb_fp_general', -1 ); $wpb_post_type_select = wpb_fp_get_option( 'wpb_post_type_select_', 'wpb_fp_advanced', 'wpb_fp_portfolio' ); $wpb_fp_taxonomy = wpb_fp_get_option( 'wpb_taxonomy_select_', 'wpb_fp_advanced', 'wpb_fp_portfolio_cat' ); $wpb_fp_number_of_title_character = wpb_fp_get_option( 'wpb_fp_number_of_title_character', 'wpb_fp_general', 16 ); $wpb_fp_image_width = wpb_fp_get_option( 'wpb_fp_image_width_', 'wpb_fp_advanced', 480 ); $wpb_fp_image_height = wpb_fp_get_option( 'wpb_fp_image_height_', 'wpb_fp_advanced', 480 ); $wpb_fp_show_overlay = wpb_fp_get_option( 'wpb_fp_show_overlay_', 'wpb_fp_advanced', 'show' ); $wpb_fp_show_links = wpb_fp_get_option( 'wpb_fp_show_links_', 'wpb_fp_advanced', 'show' ); $wpb_fp_popup_effect = wpb_fp_get_option( 'wpb_fp_popup_effect_', 'wpb_fp_style', 'mfp-zoom-in' ); $wpb_fp_hover_effect = wpb_fp_get_option( 'wpb_fp_hover_effect_', 'wpb_fp_style', 'effect-oscar' ); $args = array( 'post_type' => $wpb_post_type_select, 'posts_per_page' => $wpb_fp_number_of_post, 'orderby' => $orderby, 'order' => $order, ); // Exclude selected categories from the portfolio. if( $exclude && $exclude != '' ){ $args['tax_query'][] = array( 'taxonomy' => $wpb_fp_taxonomy, 'field' => 'id', 'terms' => explode(',', $exclude), 'operator' => 'NOT IN' ); } // Include selected categories from the portfolio. if( $include && $include != '' ){ $args['tax_query'][] = array( 'taxonomy' => $wpb_fp_taxonomy, 'field' => 'id', 'terms' => explode(',', $include), 'operator' => 'IN' ); } $loop = new WP_Query( $args ); if ( $loop->have_posts() ) { $output = '