ID, 'awa_portfolio_options'); $portfolio_meta[0]['portfolio_style'] = !empty($portfolio_meta[0]['portfolio_style']) ? $portfolio_meta[0]['portfolio_style'] : 'parallax'; $size_images = 'full'; if (isset($portfolio_meta[0]['portfolio_img_size']) && $portfolio_meta[0]['portfolio_img_size'] == 1) { $size_images = 'thumbnail'; } elseif (isset($portfolio_meta[0]['portfolio_img_size']) && $portfolio_meta[0]['portfolio_img_size'] == 2) { $size_images = 'medium'; } elseif (isset($portfolio_meta[0]['portfolio_img_size']) && $portfolio_meta[0]['portfolio_img_size'] == 3) { $size_images = 'medium_large'; } elseif (isset($portfolio_meta[0]['portfolio_img_size']) && $portfolio_meta[0]['portfolio_img_size'] == 4) { $size_images = 'large'; } while (have_posts()) : the_post(); ?>

', ''); ?>
', ''); ?>
    post_excerpt; ?>
  • 's-img-switch', 'alt' => $attachment->post_excerpt ) ); ?>
post_excerpt; ?>
's-img-switch', 'alt' => $attachment->post_excerpt ) ); ?>
ID, 'portfolio-category'); $my_cat = array(); foreach ( $terms as $term ) { $my_cat[] = $term->term_id; } $args = array( 'post_type' => 'portfolio', 'posts_per_page' => 3, 'tax_query' => array( array( 'taxonomy' => 'portfolio-category', 'field' => 'id', 'terms' => $my_cat ) ), 'orderby' => 'date', 'order' => 'DESC', 'ignore_sticky_posts' => true, 'post__not_in' => array( get_the_ID() ) ); $query = new WP_Query( $args ); if ( $query->have_posts() ) { if ( function_exists( 'cs_framework_init' )){ ?>
have_posts() ) { $query->the_post(); $imagerec = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ); $no_image = ! has_post_thumbnail() ? ' no-image' : ''; ?>
ID, 'portfolio-category'); $my_cat = array(); foreach ( $terms as $term ) { $my_cat[] = $term->term_id; } $args = array( 'post_type' => 'portfolio', 'posts_per_page' => 3, 'tax_query' => array( array( 'taxonomy' => 'portfolio-category', 'field' => 'id', 'terms' => $my_cat ) ), 'orderby' => 'date', 'order' => 'DESC', 'ignore_sticky_posts' => true, 'post__not_in' => array( get_the_ID() ) ); $query = new WP_Query( $args ); if ( $query->have_posts() ) { if ( function_exists( 'cs_framework_init' )){ ?>
have_posts() ) { $query->the_post(); $imagerec = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ); $no_image = ! has_post_thumbnail() ? ' no-image' : ''; ?>