Support » Plugin: Beautiful taxonomy filters » Show full hierarchy

  • hrsms

    (@hrsms)


    Is is possible to show all the parents for a hierarchical taxonomy (category)?
    On my page, only the “leaf” category is shown for “Subject Types”, and in some cases the full meaning is not clear without being able to see the parent categories. In other cases, two leaf categories have the same name, and they are ambiguous without being able to see the parent categories.

    To illustrate what I mean, in another temporary page, I’ve used a different taxonomy filter plugin (Search & Filter). It does show the full hierarchy, the way I wish BTF would. But the style is awful. If it is possible to improve on the style of this plugin, I am not very interested in taking the time to make it look as nice as yours does right “out of the box”.

    If this is possible to do with your plugin, I would appreciate instructions. If it is not, I hope you’ll consider adding this capability.

    Thank you.

    • This topic was modified 8 months ago by hrsms.
    • This topic was modified 8 months ago by hrsms.
    • This topic was modified 8 months ago by hrsms.
    • This topic was modified 8 months ago by hrsms.
    • This topic was modified 8 months ago by hrsms.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • hrsms

    (@hrsms)

    Update: The formatting of the “Search & Filter” plugin improved dramatically after I realized it was somehow inserted inside a ‘pre’ block.
    I’m afraid this will now be my preferred solution, due to

    • The ability to show the complete hierarchy
    • The ability to include the filter on a page (if possible with BTF, I have not figured it out

    Your styling is still somewhat better, and if I can show the filters on a page in addition to a widget, and if the full hierarchy can be visible, BTF will once again become my preferred solution.

    The test page listed above will likely be taken down soon.

    Thank you.

    Plugin Author Jonathandejong

    (@jonathandejong)

    Hi @hrsms

    I’m sorry but I don’t quite understand what you’re looking for regarding the hierarchy. Could you provide some screenshots explaining this?
    If you’re referring to the disabling of term options whenever another taxonomy has an option selected then you could just turn of the “conditional dropdowns” setting under advanced settings.. However even that would not _remove_ terms from the dropdowns.. just make them disabled.

    As for your second request it is possible to add BTF filters to a page _however_ it will always redirect to the archive when you perform a filtering. That’s because BTF relies on WP Core for the actual filter logic as to not tamper in any way with the users WP_Query.
    To add the filter module to a static page you’d have to include a second parameter to the do_action call with the post type slug.
    <?php do_action( 'show_beautiful_filters', 'posttypeslug' ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show full hierarchy’ is closed to new replies.