searchpress
searchpress copied to clipboard
Child terms seem to come through as parent/child
Might need to add something like below to this block.
if ( ! empty( $args['terms']['category'] ) && strpos( $args['terms']['category'], '/' ) ) {
$terms = explode( '/', $args['terms']['category'] );
$args['terms']['category'] = end( $terms );
}