tags:

views:

12

answers:

0

I am trying to get a wordpress custom post type for events.

How do I get the custom post pages to display for creating a navigation: wp_list_pages() doesn't display any of the custom event pages:

    add_action('init', 'event_register');


    function event_register() {


 $labels = array(
  'name' => _x('Events-x', 'post type general name'),
  'singular_name' => _x('Event', 'post type singular name'),
  'add_new' => _x('Add New', 'event item'),
  'add_new_item' => __('Add New Event Item'),
  'edit_item' => __('Edit Event Item'),
  'new_item' => __('New Event Item'),
  'view_item' => __('View Event Item'),
  'search_items' => __('Search Events'),
  'not_found' =>  __('Nothing found'),
  'not_found_in_trash' => __('Nothing found in Trash'),
  'parent_item_colon' => ''
 );

 $args = array(
  'labels' => $labels,
  'public' => true,
  'publicly_queryable' => true,
  'show_ui' => true,
  'query_var' => true,
  'show_in_nav_menus' => true,
  'rewrite' => true,
  'capability_type' => 'page',
  'hierarchical' => true,
  'menu_position' => null,
  'supports' => array('title','editor', 'page-attributes')


   ); 

 register_post_type( 'event' , $args );
    }