babble icon indicating copy to clipboard operation
babble copied to clipboard

Use wp_basename() to set $terms value in parse_request hook.

Open markoheijnen opened this issue 10 years ago • 2 comments

This fixes let urls as /en/category/parent/child/ work. $terms should get the value of child and not parent/child. This is also how WordPress internally does it.

markoheijnen avatar Aug 14 '14 17:08 markoheijnen

Marko, can you let me know what this fixes? I can see some issues with parent/child terms but I'm not sure which this is fixing. Thanks!

johnbillion avatar Oct 06 '14 16:10 johnbillion

This fixes the term pages. Only terms without a parent work.

So $wp->query_vars[ 'category_name' ] would be parent/child but you need to pass child to the variable $terms

markoheijnen avatar Oct 06 '14 23:10 markoheijnen