Skip to content

Terms Query

Terms Query renders WP_Term results inside a GenerateBlocks query loop. Runtime arguments pass through get_terms().

ControlMaps to
Taxonomytaxonomy
Number of termsnumber
Order byorderby
Orderorder (ASC / DESC)
Hide empty termshide_empty
Parent termparent
add_filter( 'gbqe_terms_query_args', function ( $args, $query, $attributes, $block ) {
$args['exclude'] = array( 123 );
return $args;
}, 10, 4 );

See Filters for the full list.