404 errors on on only some CPTs
-
So I am at a loss.
i just started working on a site which is using CPT UI v 1.1.1. Note – I didn’t build the site – so I am coming up to speed with whatever they did.
And while I am familiar with CPTs, i am new to this plugin.
there are only 3 CPTs in the site – news, press releases, and events.
events is set up differently and is working fine.
press releases – i can see them and click on them, but the archive links give me 404 errors.
i can see the main news page, but, i get a 404 error trying to click through to the actual new item. also getting 404s on the archive links.
there are no posts or pages called either of those things. there WAS a blog category called ‘news’ with a slug of ‘news’, but, even when i delete that and flush the WP and local cache, I still have the problem – can’t read the news.
the new page is at http://us.sios.com/news/
as far as I can tell, news, PR and events are set up the same way, one works, the other does not.
$labels = array(
“name” => “News Items”,
“singular_name” => “News Item”,
);$args = array(
“labels” => $labels,
“description” => “”,
“public” => true,
“show_ui” => true,
“has_archive” => true,
“show_in_menu” => true,
“exclude_from_search” => false,
“capability_type” => “post”,
“map_meta_cap” => true,
“hierarchical” => false,
“rewrite” => array( “slug” => “news”, “with_front” => true ),
“query_var” => true,“supports” => array( “title”, “editor”, “excerpt” ),
);
register_post_type( “news”, $args );$labels = array(
“name” => “Press Releases”,
“singular_name” => “Press Release”,
“menu_name” => “Press Releases”,
);$args = array(
“labels” => $labels,
“description” => “”,
“public” => true,
“show_ui” => true,
“has_archive” => true,
“show_in_menu” => true,
“exclude_from_search” => false,
“capability_type” => “post”,
“map_meta_cap” => true,
“hierarchical” => false,
“rewrite” => array( “slug” => “press-releases”, “with_front” => true ),
“query_var” => true,“supports” => array( “title”, “editor”, “excerpt” ),
);
register_post_type( “press-releases”, $args );i’ve reset permalinks more times than i can count. i’ve also moved the site to a staging instance which has an even weirder problem with some crazy redirect, but also the 404 errors on news items. Permalinks are set to month and name.
i’ve read many threads and looked on the forum and tried whatever I could – and nothing so far is working.
if i change the slug – do I lose all the posts? thats the last idea i have but I don’t want to blow it all up.
Any ideas are helpful.
The topic ‘404 errors on on only some CPTs’ is closed to new replies.