{"id":15728005,"date":"2022-06-11T01:02:34","date_gmt":"2022-06-11T01:02:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/archive-php-loop\/"},"modified":"2022-06-11T01:02:34","modified_gmt":"2022-06-11T01:02:34","slug":"archive-php-loop","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/archive-php-loop\/","title":{"rendered":"Archive.php loop"},"content":{"rendered":"<p>Hello H\u00e9ctor!<\/p>\n<p>Is there a way to (pre) filter popular posts according to WordPress hierarchical template files (like category.php or archive.php). I know that it can be done by shorcode or PHP (WP_Query), but I wanna know if is there a way to accomplish it \u201cautomatically\u201d in template files&#8230;<\/p>\n<p>Thanks in advance for the great plugin!<\/p>\n","protected":false},"template":"","class_list":["post-15728005","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15728005","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\/15728005\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15728005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}