WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Does “Custom Post Type” can have page hierarhy option? (4 posts)

  1. misterixas111
    Member
    Posted 1 year ago #

    I want create "Custom Post Type" that will have next structure:

    Post (hierarhy level)-(some-post-id)

    Post 1-1 =>
              Post 2-2
              Post 2-3
              Post 2-4 =>
                       Post 3-5
                       Post 3-6
                       Post 3-7
              Post 2-8
              Post 2-9
              Post 2-10

    I need something like "Page attributes":

    http://s019.radikal.ru/i638/1205/19/d533f543c5f7.png

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    http://codex.wordpress.org/Post_Types
    http://codex.wordpress.org/Function_Reference/register_post_type

    hierarchical
    (boolean) (optional) Whether the post type is hierarchical (e.g. page). Allows Parent to be specified.
    Default: false

  3. misterixas111
    Member
    Posted 1 year ago #

    Why i cant see this box, where i will be can specify hierarhy of those pages?

  4. misterixas111
    Member
    Posted 1 year ago #

    All is working
    But we must add into supports, 'page-attributes'

Topic Closed

This topic has been closed to new replies.

About this Topic