Incorrect in Documentation – Custom Post Types
-
Hi,
I’m currently following the documentation here: http://codex.wordpress.org/Post_Types#Single_template for creating a custom post type. Specifically, this area:
add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'rewrite' => array('slug' => 'products') ) ); }I have the following in my code:
register_post_type( 'trs_inductee', array( 'labels' => array( 'name' => __( 'Inductees' ), 'singular_name' => __( 'Inductee' )), 'public' => true, 'rewrite' => array('slug' => 'inductees'), 'register_meta_box_cb' => 'add_inductee_metaboxes' ) );The permalinks ARE being rewritten properly, as when I hit my development site I do see url/inductees/inductee-name, but when I click on it, I get a 404 error… Can anyone help out?
Thanks,
–d
The topic ‘Incorrect in Documentation – Custom Post Types’ is closed to new replies.