WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] can't assign parent post for hierarchical custom post type

[Resolved] can't assign parent post for hierarchical custom post type

  • 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:
    http://pastebin.com/xGX7QqBE

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 ‘[Resolved] can't assign parent post for hierarchical custom post type’ is closed to new replies.
Skip to toolbar