{"id":33750,"date":"2015-02-20T14:08:23","date_gmt":"2015-02-20T14:08:23","guid":{"rendered":"https:\/\/es.wordpress.org\/support\/topic\/no-mostrar-cierta-categoria\/"},"modified":"2016-08-06T00:38:25","modified_gmt":"2016-08-06T00:38:25","slug":"no-mostrar-cierta-categoria","status":"closed","type":"topic","link":"https:\/\/es.wordpress.org\/support\/topic\/no-mostrar-cierta-categoria\/","title":{"rendered":"No mostrar ciertas categorias hijas"},"content":{"rendered":"<p>Buenos d\u00edas,<br \/>\ntengo este c\u00f3digo \u00ab&lt;?php foreach((get_the_category()) as $childcat) { if (cat_is_ancestor_of(2, $childcat)) { echo &#8216;<a>cat_ID).'\u00bb&gt;&#8217;;  echo $childcat-&gt;cat_name . &#8216;<\/a>&#8216;;  break; }} ?&gt;\u00bb que me muestra la primera categor\u00eda hija correspondiente a esa entrada en el loop.<br \/>\nMi problema es el siguiente, tengo ciertas categor\u00edas que no quiero que se incluyan ah\u00ed y salte a la siguiente no se como puedo hacerlo.<\/p>\n<p>Alguien me puede ayudar? <\/p>\n<p>Mil gracias.<\/p>\n","protected":false},"template":"","class_list":["post-33750","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/33750","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\/33750\/revisions"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=33750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}