if wp_query taxonomy term have posts

I’m not sure what you exactly need, but normally, by default, get_terms returns only terms that actually have posts assigned to them

$terms = get_terms( 'exhibition' );
var_dump( $terms );

Apart from this, I really do not know what you exactly need

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)