ID), 'full', false); $aleanta_portfolio_link = $aleanta_portfolio_full_image[0]; include_once( get_template_directory() . '/templates/portfolio/'.$aleanta_portfolio_layout.'.php'); ?>
ID, 'portfolio_category', array('fields' => 'ids') ); // arguments $args = array( 'post_type' => 'portfolio', 'post_status' => 'publish', 'posts_per_page' => 3, 'orderby' => 'rand', 'tax_query' => array( array( 'taxonomy' => 'portfolio_category', 'field' => 'id', 'terms' => $portfolio_taxterms ) ), 'post__not_in' => array ($post->ID), ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) : ?>