wp-search-with-algolia icon indicating copy to clipboard operation
wp-search-with-algolia copied to clipboard

Hierarchical menu widget with custom taxonomies

Open fabien-morvan opened this issue 5 years ago • 2 comments

Describe the bug Getting no results after choosing the second level of the hierarchical menu

To Reproduce Create two custom taxonomies and make the hierarchical menu out of them. There won't be any results

Expected behavior Display results

Additional context The bug was already in the previous version of the plugin.

fabien-morvan avatar Dec 17 '19 13:12 fabien-morvan

Howdy @fabien-morvan, I'm not sure I fully understand the issue described. Could you provide more details so that I could reproduce the issue and test it?

richaber avatar Dec 17 '19 15:12 richaber

1/ I created a custom taxonomie on WP with 2 levels 2/ I added the facets on Algolia and everything is working fine with the first level. 3/ When I add the 2nd level, the 1st one is still working but the 2nd one always return an empty result.

Here is the widget I used: search.addWidget( instantsearch.widgets.hierarchicalMenu({ container: '#facet-formation', attributes: ['formation.category.lvl0.name','formation.category.lvl1.name'], templates: { header: '<h3 class="widgettitle">Formation</h3>' } }) );

It's almost the same issue as this one: https://github.com/algolia/algoliasearch-wordpress/issues/806

fabien-morvan avatar Dec 17 '19 15:12 fabien-morvan

Closing as a non-issue at the moment.

tw2113 avatar Nov 21 '22 18:11 tw2113