{"id":8530190,"date":"2016-12-08T16:16:22","date_gmt":"2016-12-08T16:16:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/helpme-array\/"},"modified":"2016-12-08T16:16:22","modified_gmt":"2016-12-08T16:16:22","slug":"helpme-array","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/helpme-array\/","title":{"rendered":"Helpme array"},"content":{"rendered":"<p>I am using a post as taxonomy and I want to show in this query only the post assigned in said taxonomy, how can I limit it to show the value assigned in the post I am visiting?<\/p>\n<p>$terms = get_the_terms( $post-&gt;ID , &#8216;tarifas&#8217;, &#8216;string&#8217;);<\/p>\n<p>$second_query = new WP_Query( array(<br \/>\n      &#8216;post_type&#8217; =&gt; &#8216;tarifas&#8217;,<br \/>\n      &#8216;posts_per_page&#8217; =&gt; 1,<\/p>\n<p>   ) );<\/p>\n","protected":false},"template":"","class_list":["post-8530190","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8530190","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\/8530190\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8530190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}