Given two custom post types: Automatically add meta fields from one custom post type to another
I think that that there is no need to create another table for restaurant, but I don’t know the entire structure of your site. Once Restaurants are already a CPT, they are saved into posts table, and with information you share that seems enough. Autocreate a Restaurant post when a Company post is created and … Read more