Reply To: Multiple Pages with different Portfolio page

New Front EN Support Forums Ikebana Theme Support Multiple Pages with different Portfolio page Reply To: Multiple Pages with different Portfolio page

#3364
satori
Keymaster

Hey Oren,

the WP_Query object has an option to include or exclude certain items of custom taxonomies, but you’d need to use the tax_query parameter in this case, e.g. on line 69 in the page_portfolio.php theme file:

$wp_query = new WP_Query( array( 'posts_per_page' => $ppp , 'post_type' => 'project' , 'paged' => $paged , 'post__not_in' => $exclude_ids, 'order' => $order, 'orderby' => $orderby, 'tax_query' => array(
		array(
			'taxonomy' => 'tagportfolio',
			'field' => 'slug',
			'terms' => array( 1, 2, 3 ),
                        'operator' => 'NOT IN'
		)
	) ) );

replacing the “1”, “2”, “3” etc with the slugs of the portfolio tags (“Portfolio -> Tags” admin section) you wish to exclude from the portfolio page.

Sincerely,
Andrii / Satori Studio