alleyinteractive / alleyinteractive/searchpress

Child terms seem to come through as parent/child

Open
#15 0 comments 0 reactions 1 assignee Claimed by @mboynes View on GitHub
Dominant language
PHP
Stars
85
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Might need to add something like below to [this block](https://github.com/alleyinteractive/searchpress/blob/master/lib/class-sp-wp-search.php#L175).

``` php
if ( ! empty( $args['terms']['category'] ) && strpos( $args['terms']['category'], '/' ) ) {
$terms = explode( '/', $args['terms']['category'] );
$args['terms']['category'] = end( $terms );
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.