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

Maintain term hierarchy does not work

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Maintain term hierarchy does not work

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #31784
    imjinoh06imjinoh06
    Participant

    Hi,
    After today’s update, I noticed “Maintain term hierarchy” does not work.
    Frontend Search Setting ->Categories & Taxonomy Terms -> Maintain term hierarchy

    It only show child category.

    Thanks.

    #31793
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    It does not look like it is that option causing the issue there. When I am logged in the terms are printed just fine, so there is something else conflicting there.
    Can you please add temporary FTP access, so I can check what is going on? Thank you!

    #31842
    imjinoh06imjinoh06
    Participant

    You cannot access this content.

    #31859
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #31882
    imjinoh06imjinoh06
    Participant

    You cannot access this content.

    #31906
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you!

    The issue was caused by something else, probably a 3rd party code or plugin. There is a filter applied on the get_terms hook, which removes some of the taxonomy terms when the plugin requests them. I put the following code to the functions.php file in your theme directory.

    add_action('asp_pre_parse_filters', 'asp_remove_get_terms_filters', 10);
    function asp_remove_get_terms_filters() {
    	remove_all_filters('get_terms');
    }

    I recommend keeping it there. It would be however better to locate the code causing the original issue.

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