How can i retrieve all custom registered taxonomy?

The built-in taxonomies are registered with the parameter _builtin set to TRUE. To get all custom taxonomies, ask for ‘_builtin’ => FALSE: add_action( ‘wp_footer’, function() { $taxonomies = get_taxonomies( array( ‘_builtin’ => FALSE ) ); print ‘<pre>’ . print_r( $taxonomies, 1 ) . ‘</pre>’; });

Display only first level children of my custom taxonomy categories

Try the following code: $taxonomy_name=”listing_category”; $queried_object = get_queried_object(); $term_id = $queried_object->term_id; $termchildren = get_terms( $taxonomy_name, array( ‘parent’ => $term_id, ‘hide_empty’ => false ) ); echo ‘<ul>’; foreach ( $termchildren as $child ) { echo ‘<li><a href=”‘ . get_term_link( $child, $taxonomy_name ) . ‘”>’ . $child->name . ‘</a></li>’; } echo ‘</ul>’;

How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?

In your case you can edit the following code to accomplish what you are looking for by assigning the custom taxonomy meta box to a custom context and then running do_meta_boxes /** * insert meta boxes before main editor below title */ function wpse_140900_add_meta_boxes_after_title( $post ){ // per the comment below filter by post type … Read more

get_the_terms return only last term

Instead of get_the_terms try using get_terms and set the hierarchal argument to true. Also make sure you show empty so you are not hiding your empty categories. Try something like this: $args = array( ‘hide_empty’ => false, ‘hierarchical’ => true ); $terms = get_terms(‘portfolio_pt’, $args); foreach($terms as $term) echo $term->name;

Insert HTML inside link in a walker

You can try to skip the CategoryThumbnailWalker and use instead the list_cats filter. Here’s an untested example: add_filter( ‘list_cats’, ‘wpse_149898_list_cats’, 99, 2 ); wp_list_categories(array( “child_of” => get_queried_object_id(), “depth” => 1, “hide_empty” => false, “hierarchical” => 1, “orderby” => “name”, “pad_counts” => 0, “post_type” => “projects”, “show_count” => 0, “show_option_none” => “”, “taxonomy” => “project-category”, “title_li” … Read more