Solved

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

Posted on 2013-12-19
5
338 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

863 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

17 Experts available now in Live!

Get 1:1 Help Now