How to Pass Current Taxonomy Terms into new WP_Query?
Try this: add_action( ‘genesis_loop’, ‘bds_more_projects_query’ ); function bds_more_projects_query() { if ( is_singular( ‘portfolio’ ) ) { $categories = get_the_terms( $post->ID, ‘portfolio_category’ ); $cat_ids = array(); foreach ( $categories as $category ) { $cat_ids[] = $category->term_id; } $args = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 4, ‘tax_query’ => array( array( ‘taxonomy’ => ‘portfolio_category’, ‘field’ => ‘id’, … Read more