• Resolved Francisco

    (@fmarconi)


    Hi I found a little work around for the issue discussed here regarding the fail to set hide empty carousel shortcode attribute to false. This topic was closed so I post my solution here.
    I’ve hooked the get_term filter as follows:

    add_filter( 'get_terms', function($terms, $taxonomy, $args, $term_query){
    	if ($taxonomy==array('pwb-brand'))
    	{
    		$args['hide_empty']=false;
    		$terms = $term_query->query( $args );
    	}
    	return $terms;
    }, 10, 4 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘pwb-carousel > hide_empty – fail II’ is closed to new replies.