Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Taxonomy auto list all the terms
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 8 years, 10 months ago.
- AuthorPosts
- September 8, 2015 at 12:03 pm #5820
I want that if I enable a taxonomy is automatic that the plugin get all the terms without a drag & drop for all the terms, there is a way with an hook?
September 9, 2015 at 9:03 am #5832Hi!
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 :)
September 9, 2015 at 10:14 am #5834Thanks! but is possible for the future add an option or an hook?
September 9, 2015 at 10:42 am #5837Sure, I don’t see why not 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 27, 2015 at 11:02 am #6468there is any eta for this?
October 27, 2015 at 11:04 am #6469Scheduled to the next update, 10-20 days.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.