{"id":54681,"date":"2015-09-24T13:26:58","date_gmt":"2015-09-24T13:26:58","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/listar-categorias-por-posts-publicados\/"},"modified":"2016-08-06T01:41:31","modified_gmt":"2016-08-06T01:41:31","slug":"listar-categorias-por-posts-publicados","status":"publish","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/listar-categorias-por-posts-publicados\/","title":{"rendered":"Listar categorias por posts publicados"},"content":{"rendered":"<p>Ol\u00e1,<br \/>\nestou tendo dificuldades para criar um loop, que liste as categorias por ordem de posts publicados.<br \/>\nEx:<br \/>\nQuero listar 4 categorias:<br \/>\nCategoria 1<br \/>\nCategoria 2<br \/>\nCategoria 3<br \/>\nCategoria 4<\/p>\n<p>De modo que ao ser publicado um post na &#8220;Categoria 3&#8221; a ordem passe a ser:<br \/>\nCategoria 3<br \/>\nCategoria 1<br \/>\nCategoria 2<br \/>\nCategoria 4<\/p>\n","protected":false},"template":"","class_list":["post-54681","topic","type-topic","status-publish","hentry","topic-tag-categoria","topic-tag-categorias"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/54681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/54681\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=54681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}