I have a custom post type with it’s own taxonomy and I need to display a widget when on a category archive that is ONLY displayed when there are no posts. Currently I’m using this:
is_tax( 'genre' )
in the widget logic so that it only displays for that taxonomy but it is being displayed all the time. When there is a post for that category the widget should disappear. Any suggestions?