Problem displaying new custom post type
-
Hi guys,
I had existing custom post types, which I am able to query successfully. But newly registered custom post type does not show up, I have added 2 test posts, individually it shows up under post type site/slug/ but I want to display it on another page, results are not returning it there.
Following is the code I put for registering the new post type:
$custom_post_types = array('proof-concept' => array( 'labels' => array( 'name' => 'Proof of Concepts', 'singular_name' => 'Proof of Concept' ), 'taxonomies' => array('industries', 'disciplines','services'), 'has_archive'=> true )) foreach($custom_post_types as $id=>$custom_post_type){ if(!isset($custom_post_type['public'])) $custom_post_type['public'] = true; register_post_type( $id, $custom_post_type);
Please note custom_post_types array does have other post types I removed from the code. Am I missing something? Please help.
- The topic ‘Problem displaying new custom post type’ is closed to new replies.