Custom Post Type Not Working
-
my site is located at https://beta.limelightmich.com
I currently have 3 custom post types.
1) News
2) Projects
3) Servicesnews and projects pull a page just fine but for some reason, clicking on any of the services gives you a “not found” error. Can anyone tell me why this might be happening? Using WP 3.1.2. My code is below. Any help would be appreciated!!!
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'News', array( 'labels' => array( 'name' => __( 'News'), 'singular_name' => __( 'News' ), 'add_new' => __('Add News Article'), 'add_new_item' => ('Add News Article'), 'menu_name' => ("News") ), 'public' => true, 'menu_position' => 5, 'has_archive' => true, 'supports' => array('title','editor','author','thumbnail','comments') ) ); register_post_type( 'Projects', array( 'labels' => array( 'name' => __( 'Projects'), 'singular_name' => __( 'Project' ), 'add_new' => __('Add Project'), 'add_new_item' => ('Add Project'), 'menu_name' => ("Projects") ), 'public' => true, 'menu_position' => 5, 'has_archive' => true, 'supports' => array('title','editor','author','thumbnail','comments') ) ); register_post_type( 'Services', array( 'labels' => array( 'name' => __( 'Services'), 'singular_name' => __( 'Service' ), 'add_new' => __('Add Service'), 'add_new_item' => ('Add Service'), 'menu_name' => ("Services") ), 'public' => true, 'menu_position' => 5, 'has_archive' => true, 'supports' => array('title','editor','author','thumbnail','comments') ) ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Post Type Not Working’ is closed to new replies.