Avatar of Sean Clarke
Sean Clarke
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Wordpress Custom Posts Types do not work in Internet Explorer - 404 Shown

I've asked before about this an never did get an answer.

Visit this URL in firefox and everything looks fine - http://www.financeforindustry.org/ffi-show/southern-manufacturing-2014/

Now try visiting the same URL in Internet Explorer - you get a 404

??????????????????????????

Chrome and Safari also give 404 errors - so how can Firefox find this page and the others cannot.
Custom-Post-in-Firefox.PNG
WordPress

Avatar of undefined
Last Comment
Sean Clarke

8/22/2022 - Mon
dimmergeek

FF gives me 404 error....


Firefox screenshot with 404 error
Sean Clarke

ASKER
Holy hell now it gets even more complicated.

Yes all you people out there in EE land will get a 404 in every browser.

HOWEVER when I login to Wordpress and visit the page it shows up fine in FF. Log out and I get a 404 - seriously... Login fine... logout 404... WTF


I've wasted hours of my life trying to get custom posts to use the right permalink settings.
currently /%category%/%postname%/

I've tried everything in my permalinks, no change - just 404's

I followed this guide on how to setup a custom post - http://wp.smashingmagazine.com/2012/11/08/complete-guide-custom-post-types/

The code from my functions.php file is below

function my_custom_post_shows() {
	$labels = array(
		'name'               => _x( 'Shows', 'post type general name' ),
		'singular_name'      => _x( 'Show', 'post type singular name' ),
		'add_new'            => _x( 'Add Show', 'book' ),
		'add_new_item'       => __( 'Add New Show' ),
		'edit_item'          => __( 'Edit Show' ),
		'new_item'           => __( 'New Show' ),
		'all_items'          => __( 'All Shows' ),
		'view_item'          => __( 'View Show' ),
		'search_items'       => __( 'Search Shows' ),
		'not_found'          => __( 'No shows found' ),
		'not_found_in_trash' => __( 'No shows found in the Trash' ), 
		'parent_item_colon'  => '',
		'menu_name'          => 'Shows'
	);
	
	$args = array(
		'labels'        => $labels,
		'description'   => 'Holds shows and events',
		'public'        => true,
		'menu_position' => 5,
		'supports'      => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ),
		'has_archive'   => true,
	);
	
	register_post_type( 'ffi-shows', $args );
	
}
add_action( 'init', 'my_custom_post_shows' );

Open in new window

ASKER CERTIFIED SOLUTION
Sean Clarke

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason C. Levine

clarkedesign,

I never even thought to ask about that...nice catch.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Sean Clarke

ASKER
Should have spotted this earlier