true, 'category__in' => $cat_id, 'post_type' => 'post', 'posts_per_page' => absint( $options['number_of_portfolios'] ), 'orderby' => 'ASC', ); break; default: break; } if ( 'demo' != $portfolio_content_type && 'custom' != $portfolio_content_type ) { // Fetch posts. $posts = get_posts( $args ); if ( ! empty( $posts ) ) { $i = 1; foreach ( $posts as $key => $post ) { $post_id = $post->ID; $content[ $i ]['title'] = get_the_title( $post_id ); $content[ $i ]['sub_title'] = get_post_field('post_content', $post_id); $content[ $i ]['link'] = get_permalink( $post_id ); $content[ $i ]['name_company'] = get_the_title( $post_id ); if ( has_post_thumbnail( $post_id ) ) { $featured_img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' ); $img_array = $featured_img[0]; } else { $img_array = get_template_directory_uri() . '/assets/uploads/no-featured-image-1300x600.jpg'; } if ( isset( $img_array ) ) { $content[$i]['img_array'][0] = $img_array; } $content[ $i ]['content'] = get_post_field( 'post_content', $post_id ); $i++; } } } if ( ! empty( $content ) ) { $input = $content; } return $input; } endif; // Portfolio section content details. add_filter( 'business_center_pro_filter_portfolio_section_details', 'business_center_pro_get_portfolio_section_details' ); if ( ! function_exists( 'business_center_pro_render_portfolio_section' ) ) : /** * Start portfolio section * * @return string Portfolio content * @since Business Center Pro 2.0.0 * */ function business_center_pro_render_portfolio_section( $content_details = array() ) { $options = business_center_pro_get_theme_options(); if ( empty( $content_details ) ) { return; } ?>

, "slidesToScroll": 1, "infinite": true, "speed": 800, "dots": false, "arrows": false, "autoplay": true, "fade": false, "draggable": false, "focusOnSelect": true, "centerMode":true }'>