Solved

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

Posted on 2013-12-19
5
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Upload memory limit WordPress GoDaddy 8 55
PHP AJAX Wordpress 9 36
Apache  Rewrite HTTP To HTTPS 5 40
PHP breaks when used in Wordpress template file 3 43
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…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
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…

740 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