{"id":11310495,"date":"2019-03-13T22:40:43","date_gmt":"2019-03-13T22:40:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/errors-when-using-custom-taxonomy\/"},"modified":"2019-03-13T22:40:43","modified_gmt":"2019-03-13T22:40:43","slug":"errors-when-using-custom-taxonomy","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/errors-when-using-custom-taxonomy\/","title":{"rendered":"Errors when using custom taxonomy"},"content":{"rendered":"<p>Hi,<br \/>\nLooking at using this &#8211; but when using a Custom Taxonomy linked to a CPT, but get a fatal error in this file&#8230;<\/p>\n<p><code>\/Users\/neilg\/Sites\/fsa\/wp-content\/plugins\/media-recode-custom-modules\/mr-multipoint-map\/includes\/frontend.js.php on line 53<\/code><\/p>\n<p>which is this code&#8230;<br \/>\n<code>$category = get_the_terms(get_the_ID(), $settings-&gt;post_taxonomy)[0];<\/code><\/p>\n","protected":false},"template":"","class_list":["post-11310495","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11310495","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\/11310495\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11310495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}