{"id":14614543,"date":"2021-07-01T07:21:41","date_gmt":"2021-07-01T07:21:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cpt-inside-cpt\/"},"modified":"2021-07-01T07:21:41","modified_gmt":"2021-07-01T07:21:41","slug":"cpt-inside-cpt","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cpt-inside-cpt\/","title":{"rendered":"CPT inside CPT"},"content":{"rendered":"<p>Hello,<br \/>\nIs it possible to create a custom post type inside another custom post type?<br \/>\nFor example, create a custom post type &#8220;Events&#8221; with a custom post type &#8220;Location&#8221; inside.<br \/>\nThanks<\/p>\n","protected":false},"template":"","class_list":["post-14614543","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14614543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14614543\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14614543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}