I'm having issues with some custom post types showing up as 404's. I have a website i've been running for about five years, that has a CPT called Videos, and a single PAGE which acts as the Videos main section.
websitename/videos
I now want to add some new PAGES to the end as a child of Video
websitename/videos/Newreleases
websitename/videos/latest
websitename/videos/example
(there are six of them in total)
The issue is that they show up as 404's. I've tried flushing the rewrite rules but that has not worked. The funny thing is one works just fine, but the rest are all 404s. They are not clashing with any taxonomies, they just wont work. I just don't understand the code enough to figure it out.
My code below
/ Videos Taxonomy
$labels = array(
'name' => 'Videos',
'singular_name' => 'Video',
'menu_name' => 'Videos',
'name_admin_bar' => 'Videos',
'parent_item_colon' => 'Parent Video',
'all_items' => 'All Videos',
'add_new_item' => 'Add Video',
'add_new' => 'Add Video',
'new_item' => 'New Video',
'edit_item' => 'Edit Video',
'update_item' => 'Update Video',
'view_item' => 'View Video',
'search_items' => 'Search Videos',
'not_found' => 'Nothing found',
'not_found_in_trash' => 'Nothing found in Trash',
);
$args = array(
'label' => 'Videos',
'description' => 'Videos',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'category', 'post_tag', 'videos' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 13,
'menu_icon' => 'dashicons-video-alt3',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'videos', $args );
Does anyone know what i can do to fix this?
Any help would be hugely appreciated.