{"id":18706733,"date":"2025-11-04T15:54:38","date_gmt":"2025-11-04T15:54:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/query-attachments\/"},"modified":"2025-11-04T15:54:38","modified_gmt":"2025-11-04T15:54:38","slug":"query-attachments","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/query-attachments\/","title":{"rendered":"Query Attachments?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello there!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I noticed that the AQL supports querying posts and custom post types as well, but I&#8217;m not able to query attachments. I&#8217;m wondering if you have some ideas on how we could potentially do this? We&#8217;re extending the attachment post type to include some custom taxonomies and would like to leverage that directly with this block.<\/p>\n","protected":false},"template":"","class_list":["post-18706733","topic","type-topic","status-publish","hentry","topic-tag-media"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18706733","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\/18706733\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18706733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}