• Resolved er.deepak

    (@erdeepak)


    i added a custom post type in wordpress. but its post is not showing in calendar.

    have a look at code:

    register_post_type(
    ‘events’,
    array(
    ‘label’ => __(‘Event’),
    ‘singular_label’ => __(‘location’),
    ‘public’ => true,
    ‘show_ui’ => true,
    ‘capability_type’ => ‘post’,
    ‘hierarchical’ => false,
    ‘rewrite’ => true,
    ‘query_var’ => true,
    ‘show_in_nav_menus’ => true,
    ‘menu_position’ => 5,
    ‘taxonomies’ => array(‘event’),
    ‘supports’ => array(‘title’, ‘editor’, ‘author’, ‘thumbnail’, ‘excerpt’ , ‘trackbacks’ , ‘comments’ , ‘custom-fields’),
    ‘_builtin’ => false, // It’s a custom post type, not built in!
    ));

    dont you think it should display in calendar with other post

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘custom post type not showing in wordpress calendar’ is closed to new replies.