{"id":50672,"date":"2016-08-16T14:07:04","date_gmt":"2016-08-16T14:07:04","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/taxonomias-y-campos-personalizados\/"},"modified":"2016-08-16T14:07:04","modified_gmt":"2016-08-16T14:07:04","slug":"taxonomias-y-campos-personalizados","status":"publish","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/taxonomias-y-campos-personalizados\/","title":{"rendered":"TAXONOMIAS Y CAMPOS PERSONALIZADOS"},"content":{"rendered":"<p>Buenos d\u00edas!<\/p>\n<p>Tengo creada 2 postypes (videocuentos y Personalidades) y dentro Videocuentos una taxonomy llamado maestros y otro genero<\/p>\n<p>Necesito que me traiga el video correspondiente a ese maestro<\/p>\n<p>?php<br \/>\n              $args = array(<br \/>\n              &#8216;post_type&#8217; =&gt; &#8216;videocuentos&#8217;,<br \/>\n              &#8216;taxonomy&#8217; =&gt; &#8216;maestros&#8217;,<br \/>\n              &#8216;generos&#8217; =&gt; &#8216;personalidades&#8217;,<br \/>\n              &#8216;post_status&#8217; =&gt; &#8216;publish&#8217;,<br \/>\n              &#8216;order&#8217; =&gt; &#8216;ASC&#8217;<br \/>\n              );<br \/>\n              $loop = new WP_Query($args);<br \/>\n              if ($loop-&gt;have_posts()) :  while ($loop-&gt;have_posts()) : $loop-&gt;the_post();<br \/>\n          ?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-50672","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/50672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/50672\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=50672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}