I've set up some custom post types and wanted to visit the pages but I only get 404 errors.
I've searched the web and it seems to be a known problem, but I didn't find a solution that worked for me.
I saved the permalinks several times and also tried the
flush_rewrite_rules( false ); command on every post type. But nothing changes.
If I set the permalink structure to basic, everything works fine, so the post types are ok...
Can anyone think of another problem?
Maybe it's because I used the same permalink for a page (
post_type => 'page)? But I've deleted that page and I cannot find anything else than my page of the custom post type with that title in the database. So everything should be fine.
$args = array( 'labels' => $labels, 'public' => true, 'has_archive' => true, 'publicly_queryable' => true, 'query_var' => true, 'rewrite' => array( 'with_front' => true, 'slug' => 'practical-courses' ), 'capability_type' => 'page', 'hierarchial' => true, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'author', 'page-attributes', 'comments', ), 'menu_position' => 20, 'menu_icon' => '', 'exclude_from_search' => false, );