Reply To: Taxonomy auto list all the terms

#5832
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

This is only possible with a modification directly in the code. It might not work correctly, but it’s worth a try.

Open up the wp-content/plugins/ajax-search-pro/includes/views/asp.shortcode.categories_terms.php file and go to lines 124-128, where you should see this:

$_needed_terms_full = get_terms($taxonomy, array(
  'orderby' => $term_ordering[0],
  'order'   => $term_ordering[1],
  'include' => $terms
));

change that code to this:

$_needed_terms_full = get_terms($taxonomy, array(
  'orderby' => $term_ordering[0],
  'order'   => $term_ordering[1]
));

This should get all the terms for a taxonomy, if at least one term is selected from the taxonomy.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)