Solved

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

Posted on 2013-12-19
5
336 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:Sean Clarke
  • 3
5 Comments
 
LVL 7

Expert Comment

by:dimmergeek
ID: 39730036
FF gives me 404 error....


Firefox screenshot with 404 error
0
 
LVL 1

Author Comment

by:Sean Clarke
ID: 39731324
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

0
 
LVL 1

Accepted Solution

by:
Sean Clarke earned 0 total points
ID: 39731455
Solved this.

My posts were about events that were posted in the future.

So when I am logged in as an administrator, the test to see WHEN a post was posted was ignored.
When I logged out or someone else viewed it naturally the page doesn't display as it's posted in the future (when the end is due)
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39733102
clarkedesign,

I never even thought to ask about that...nice catch.
0
 
LVL 1

Author Closing Comment

by:Sean Clarke
ID: 39738951
Should have spotted this earlier
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
How to create your own WordPress Theme Before I begin with the theme design tutorial, I would like to give you the basics of what is required to make a WordPress Theme. The most basic WordPress theme only requires 2 files: a style.css file and an…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now