This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Taxonomy auto list all the terms

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Taxonomy auto list all the terms

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5820
    Mte90Mte90
    Participant

    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?

    #5832
    Ernest MarcinkoErnest 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:

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

    change that code to this:

    [php]$_needed_terms_full = get_terms($taxonomy, array(
    ‘orderby’ => $term_ordering[0],
    ‘order’ => $term_ordering[1]
    ));[/php]

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

    #5834
    Mte90Mte90
    Participant

    Thanks! but is possible for the future add an option or an hook?

    #5837
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Sure, I don’t see why not 🙂

    #6468
    Mte90Mte90
    Participant

    there is any eta for this?

    #6469
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Scheduled to the next update, 10-20 days.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.