WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a CPT (defined in functions.php) that I have set to as non-hierarchical. A lot of content has already been uploaded into the database.

If I change the definition to 'hierarchical' => true, will the change affect any of the posts in that CPT?

share|improve this question
up vote 3 down vote accepted

No, it will not. It changes just the interface in the post editor: you get the page attributes box to select a parent.

All existing post have already a value for the parent: 0. You can find it in the post_parent property of each post. The only thing that changes now is the ability to change that value.

share|improve this answer
Perfect, that's what I wanted to hear! Thanks a lot for the response. – Jacob Apr 1 '13 at 20:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.