Hierarchical set to TRUE = but not working?

Hello there,

Quick question. I am using custom post types all the time… but for some reason “hierarchical” is set to true but not working at all… i have tried anything but no positive result.

code:

    register_post_type('trouwblog', array(
  'label' => 'Trouwblog',
  'public' => true,
  'has_archive' => true,
  'show_ui' => true,
  'show_in_menu' => true,
  'rewrite' => array('slug' => 'trouwblog', 'with_front' => true),
  'query_var' => true,
  'hierarchical' => true,
  'supports' => array('title','editor','revisions', 'author'),
  'menu_icon' => 'dashicons-heart',
  'labels' => array (
    'name' => 'Trouwblogs',
    'singular_name' => 'Trouwblog',
    'menu_name' => 'Trouwblogs',
    'add_new' => 'Nieuw trouwblog',
    'add_new_item' => 'Nieuw Trouwblog toevoegen',
    'edit' => 'Bewerk',
    'edit_item' => 'Bewerk trouwblog',
    'new_item' => 'Nieuw trouwblog',
    'view' => 'Bekijk trouwblog',
    'view_item' => 'Bekijk trouwblog',
    'search_items' => 'Zoek trouwblog',
    'not_found' => 'Geen trouwblog gevonden',
    'not_found_in_trash' => 'Geen trouwblogs gevonden in de prullenbak',
    'parent' => 'Bovenliggend trouwblog'
    )
  )
);

Can somebody tell me whats wrong here?

Thanks.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.