skip to Main Content

Change Portfolio Grid Filter To Use Tags Instead

// Use the portfolio_tag taxonomy for the filter on Total VC GRID module with a unique
// ID of "my-custom-grid"
add_filter( 'vcex_filter_taxonomy', function( $tax, $atts ) {
	if ( 'my-custom-grid' == $atts['unique_id'] ) {
		$tax = 'portfolio_tag';
	return $tax;
}, 10, 2 );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top