• Resolved colingreig

    (@colingreig)


    Great plugin, thank you!

    Currently, if the user selects a parent term the posts that are tagged to the child terms do not appear in the results.

    How can we change this to work the way WordPress native post categories work? In the sense that clicking on a parent category returns posts within that parent + all children categories.

    Here’s an example:
    – Parent 1
    – Parent 2
    – Parent 3
    — Child 1
    — Child 2
    – Parent 4

    Currently, if user selects “Parent 3” they will only see posts tagged “Parent 3” where as I want the filter to show posts within “Parent 3, Child 1, Child 2”.

    Any direction/assistance is much appreciated, thanks!!

    https://www.ads-software.com/plugins/beautiful-taxonomy-filters/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jonathandejong

    (@jonathandejong)

    Hi Colin,

    I’ve been ill for the past week(s) and unfortunately haven’t had the energi to look at the support here.

    I saw your email but must’ve somehow managed to delete it because I can’t find it in my inbox. How are things looking with this issue for you? Do you still need assistance?

    If so you can send me the email again and we can take it from there ?? Tomorrow is a holiday in Sweden but I’ll likely put in some time anyway since I’ve fallen behind on work.

    Hi,

    I’m currently trying the same.

    I have colors
    – red
    — winered
    — lightred
    – blue
    — lightblue
    — skyblue

    I want to show just the parent category, but want to trigger also the childs.
    Is this somehow possible?

    Plugin Author Jonathandejong

    (@jonathandejong)

    Hi Nils,

    The plugin isn’t doing any manipulation to the queries so child terms posts should also appear. Are they not?

    As for hiding the child terms in the dropdowns you can use a filter to modify the depth:

    function modify_dropdown_depth($args, $taxonomy){
    $args['depth'] = 1;
    return $args;
    }
    add_filter('beautiful_filters_dropdown_categories', 'modify_dropdown_depth', 10, 2);

    I should had check that first ^^
    They appear.

    Also the function work like charm.

    Thanks for that!

    Plugin Author Jonathandejong

    (@jonathandejong)

    No problem! Marking this topic as resolved now due to inactivity + your solution.

    Best of luck in your project!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Include children in results when parent taxonomy selected’ is closed to new replies.