@ Ray
To answer this question specifically…
re: Is there a way that I can ensure that when a Category is selected it will show ALL the businesses in that Category?
No, not with the shortcode you are using. Setting the specific entries to display by setting the id shortcode option will always limit the list to those entries.
That said…
Assuming you have always used the order_by='id|RANDOM' shortcode option… There was a bug when using the order by random that would cause the entry to be listed for each category it was assigned to. I’m guessing this was the cause of the duplicates that you were experiencing. This bug was fixed between a year and year and a half ago. So you should no longer need the id shortcode option to prevent duplicates.
Now, it sounds like you have duplicate entries in your database as a work around but limiting the display to only one of them, correct?
To test that the bug is fixed for you, set those duplicates to unlisted and remove the id option.
Now, you still might having another problem…
I see this is a heavily modded version for Slim Plus 1.0. There is a category selection bug in that version that you should fix. Open the slim-plus.php file, look for this block of code towards the end of the file:
public function setCategory( $atts ) {
if ( $atts['enable_category_select'] ) {
if ( get_query_var('cn-cat') ) $atts['category_in'] = get_query_var('cn-cat');
} else {
if ( get_query_var('cn-cat') ) $atts['category'] = get_query_var('cn-cat');
}
return $atts;
}
Change it to this:
public static function setCategory( $atts ) {
if ( $atts['enable_category_multi_select'] ) {
if ( get_query_var('cn-cat') ) $atts['category_in'] = get_query_var('cn-cat');
remove_query_arg( 'cn-cat' );
}
return $atts;
}
Hope that helps. Please let me know.
