[resolved] can't assign parent post for hierarchical custom post type (3 posts)

  1. Arru
    Posted 4 years ago #

    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:

  2. Arru
    Posted 4 years ago #

    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'),),

  3. jessn
    Posted 4 years ago #

    Thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Topic