Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

How to install BuddyPress on your self-hosted WordPress site It’s been called everything from “social networking in a box” to “Facebook without the terms of service,” but until Feb. 16, BuddyPress was a relatively unknown outside the WordPress MU…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

825 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