Custom Taxonomy – Modify Function to Get Child Category

if it is for product categories, this function only needs the category id to know the childrens: function cat_childs( $term_id = 0) { $children = get_terms( array( ‘child_of’ => $term_id, ‘taxonomy’ => ‘product_cat’, ‘hide_empty’ => true, ‘fields’ => ‘ids’, )); return ( $children ); } can be called like this: cat_childs(1234); because it can return … Read more

Custom taxonomy terms hierarchical navigation

I managed to find a solution myself. This code is to be used in taxonomy templates. PHP: function show_taxonomy_navigation( $post_type=”post”, $taxonomy = ‘category’, $parent = 0 ) { $html = get_taxonomy_hierarchy( $post_type, $taxonomy, $parent ); echo $html; } function get_taxonomy_hierarchy( $post_type, $taxonomy, $parent = 0, $depth = 0 ) { $taxonomy = is_array( $taxonomy ) … Read more

Show subChild categories

only getting deep in the code, but this should give the categories associated with the product $sub_child = $product->get_categories(); foreach($sub_child as $a){ echo $a; } if this gives the sub-child, child and parents, then must be built some kind of filter to show only the sub-child. to the sub-districts I imagine something like: $district = … Read more

Is possible hide hierarchical select dropdown created by jetsmartfilters? (only visual issue)

Solved by myself!! JetSmartFilter/Settings/Indexer Settings “active” Indexed filters at same page “choose” Index Post Types. Next go to your “page” editing with Elementor choose select field/ configure Jet Engine and link your hierarchical filter/ and after this the most important: inside “Select Field Edit” go to “INDEXER OPTIONS” / “active” apply indexer / if item … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)