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

Custom Post Type Archive Page showing as 404

While registering custom_post_type use this parameters too. ‘publicly_queryable’ => true, Then it should be look like this. function wporg_custom_post_type() { register_post_type(‘proctor-work’, array( ‘labels’ => array( ‘name’ => __( ‘Works’, ‘textdomain’ ), ‘singular_name’ => __( ‘Work’, ‘textdomain’ ), ), ‘public’ => true, ‘has_archive’ => true, ‘rewrite’ => array( ‘slug’ => ‘proctor-work’ ), // my custom slug … Read more