Snippets: Change Portfolio Grid VC Module To Use Tags for “Show Categories” setting

function myprefix_vcex_shortcode_loop_atts( $atts ) {
	// Target portfolio grid
	if ( isset( $atts['base'] )
		&& 'vcex_portfolio_grid' == $atts['base']
	) {

		$atts['show_categories_tax'] = 'portfolio_tag';


	// very important
	return $atts;

add_filter( 'vcex_shortcode_loop_atts', 'myprefix_vcex_shortcode_loop_atts' );

Version Required:3.5.3+

Snippet Type: PHP

Posted Under: Portfolio

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)