• Resolved Arru

    (@arru)


    I created some custom post types and set ‘hierarchical’ to ‘true’ for some of them. Now everything works, exept that they all seem to be flat – there’s no place within UI to assign parents as I have for pages.

    Is there anything else I should have done?

    Here’s the code which I used:
    https://pastebin.com/xGX7QqBE

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Arru

    (@arru)

    I found it eventually, so I’ll write it down in case anyone has similar problem in the future. That post-type must support page-attributes. I had:

    'supports' => array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'custom-fields', 'revisions', 'comments'),

    But there should have been:

    'supports' => array('title', 'editor', 'author', 'page-attributes', 'thumbnail', 'excerpt', 'custom-fields', 'revisions', 'comments'),),

    Thank you!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can't assign parent post for hierarchical custom post type’ is closed to new replies.