{"id":4649942,"date":"2014-02-25T23:44:14","date_gmt":"2014-02-25T23:44:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/combine-two-custom-post-types\/"},"modified":"2016-08-21T16:42:08","modified_gmt":"2016-08-21T16:42:08","slug":"combine-two-custom-post-types","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/combine-two-custom-post-types\/","title":{"rendered":"Combine two custom post types"},"content":{"rendered":"<p>I love this plugin but I have actually a problem I can&#8217; solve.<\/p>\n<p>I have custom post type &#8220;objects&#8221; and &#8220;persons&#8221;. Each &#8220;object&#8221; is associated with one &#8220;person&#8221; (with the &#8220;posts 2 posts&#8221; plugin).<\/p>\n<p>I want to get one JSON API result which combines the two custom post types so I have all data from the &#8220;objects&#8221; and all the data from associated &#8220;persons&#8221;.<\/p>\n<p>How can I retrieve this?<\/p>\n<p>Thank you!!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/json-api\/<\/p>\n","protected":false},"template":"","class_list":["post-4649942","topic","type-topic","status-closed","hentry","topic-tag-combine"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4649942","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\/4649942\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4649942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}