Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.