How to set parent-child relationship between differents custom post types
I have just set up a post/parent relationship between a post type “episodes” and a post type “cartoon-series.” I used this bit of code to add in the meta box to assign the parent from another post type: add_action(‘admin_menu’, function() { remove_meta_box(‘pageparentdiv’, ‘episodes’, ‘normal’); }); add_action(‘add_meta_boxes’, function() { add_meta_box(‘episodes-parent’, ‘Cartoon Series’, ‘episodes_attributes_meta_box’, ‘episodes’, ‘side’, ‘default’); … Read more