woothemes/woocommerce — Issue #82: Category filter in admin (admin-post-types.php)
Author: scottsweb
Created: 2011-10-19 08:58:04+00:00
State: open

The admin filter for categories is not showing any categories to allow a user to filter the backend view. I have tracked it down to line 307-311 in admin-post-types.php:

```
foreach($terms as $term) :
if ( isset( $wp_query->query['product_cat'] ) ) :
$output .="
slug, $wp_query->query['product_cat'], false).">$term->name ($term->count)
";
endif;
endforeach;
```

The line:

```
if ( isset( $wp_query->query['product_cat'] ) ) :
```

is not evaluating true and therefore the list remains empty. With this removed the items appear as expected.