Title: post_type is changed after moving tree node
Last modified: August 21, 2016

---

# post_type is changed after moving tree node

 *  [IllusionMH](https://wordpress.org/support/users/illusionmh/)
 * (@illusionmh)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post_type-is-changed-after-moving-tree-node/)
 * Hello.
    I tried to use this plugin for page with posts that have two different
   post types (for example `page`, `custom_type`). After moving `custom_type` post
   after/before `page`, custom `post_type` is changed to `page` and vice versa. 
   I’m not sure this is bug or normal behavior. Looks like `post_type` is changed
   in function `cms_tpv_move_page` in lines `post_type" => $post_ref_node->post_type`.(
   lines 1605, 1627, 1648 in version 1.2.10) I understand that this is not common
   case, but I suppose that post_type shouldn’t change after moving, and propose
   to use `$post_node` instead of `$post_ref_node`
 * [http://wordpress.org/extend/plugins/cms-tree-page-view/](http://wordpress.org/extend/plugins/cms-tree-page-view/)

The topic ‘post_type is changed after moving tree node’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cms-tree-page-view_f1f1f1.svg)
 * [CMS Tree Page View](https://wordpress.org/plugins/cms-tree-page-view/)
 * [Support Threads](https://wordpress.org/support/plugin/cms-tree-page-view/)
 * [Active Topics](https://wordpress.org/support/plugin/cms-tree-page-view/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cms-tree-page-view/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cms-tree-page-view/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [IllusionMH](https://wordpress.org/support/users/illusionmh/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/post_type-is-changed-after-moving-tree-node/)
 * Status: not resolved