I'm trying to register a custom posttype and custom post type taxonomy. But when I create a term and click the button "view" to see the custom taxonomy page it returns a 404. I've tried resaving the permalinks a 1000 times, doesn't work.
function build_blog_post_type() {
register_post_type (
'blog',
array (
'labels'=> array (
'name' => 'Blog',
'singular_name' => 'Blog bericht',
'add_new_item' => 'Blog bericht toevoegen',
'add_new' => 'Blog bericht toevoegen',
'all_items' => 'Alle blog berichten'
),
'public' => true,
'menu_position' => 2,
'menu_icon' => 'dashicons-id-alt',
'supports' => array('title'),
)
);
register_taxonomy(
'blog_taxonomy',
'blog',
array (
'label' => 'Welke taxonomy',
'name' => 'Welke taxonomy',
'singular_name' => 'Welke taxonomy',
'edit_item' => 'Bewerk taxonomy',
'add_new_item' => 'Nieuwe taxonomy toevoegen',
'menu_name' => 'Welke taxonomy',
'show_in_nav_menus' => false,
'public' => true,
)
);
}
add_action('init', 'build_blog_post_type');
URL I'm trying to acces: mydomain.test/blog_taxonomy/test-taxonomy
I have an 404.php with a specific main ID and a index.php with its own specific main ID, so I can easly see which is returned. There is no indication index.php is used