Return all Tags and Categories in Separate List

how I can get the categories from the same global search You can add a taxonomy attribute to your shortcode and then pass the value to get_query_terms_list(), like so: add_shortcode( ‘bd_terms_list’, ‘bd_terms_list_custom_callback’); function bd_terms_list_custom_callback( $args ){ $atts = shortcode_atts( array( // list of default attributes ‘taxonomy’ => ‘gd_place_tags’, ‘sep’ => ”, // optional, but you … Read more

Display all subcategories from parent category

get_categories() uses get_terms() so the array argument you can pass it will be the same. From the documentation the array can have a property hide_empty, by default its true. I’m guessing that those categories have no posts attached to it, if that is the case you will need to set it to false. The code … 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