Custom Post Type Broken?
-
Hi Everyone,
I’m wondering if anyone else is having trouble with basic Custom Post Types using 3.9? I can add the Custom Post Type using the code below with no problems but none of the posts are actually listing in their relative category feeds. Maybe I’m missing a step or something here.
I had it set up on an another site using 3.8x but I can’t seem to get it working on any new build attempts.
Here’s a link to the basic test build: rings.midasselect.om
Below is the basic code I’m using in functions.php to create the custom post type example. Any advice appreciated.
Cheers,
Michael
<?php // Add Product Post Type add_action( 'init', 'create_post_type' ); function create_post_type() { $labels = array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ), ); register_post_type( 'acme_product', array( 'labels' => $labels, 'public' => true, 'has_archive' => true, 'taxonomies' => array('category'), ) ); } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Post Type Broken?’ is closed to new replies.