Maintain term hierarchy does not work

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

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #31784
    imjinoh06
    imjinoh06
    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.

    Attachments:
    You must be logged in to view attached files.
    #31793
    Ernest Marcinko
    Ernest 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!

    Best,
    Ernest Marcinko

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


    #31842
    imjinoh06
    imjinoh06
    Participant
    You cannot access this content.
    #31859
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


    #31882
    imjinoh06
    imjinoh06
    Participant
    You cannot access this content.
    #31906
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

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


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.