Title: Get non-image attachments programmatically?
Last modified: August 21, 2016

---

# Get non-image attachments programmatically?

 *  Resolved [mYrAn](https://wordpress.org/support/users/myran/)
 * (@myran)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/get-non-image-attachments-programmatically/)
 * Hello!
    I’m wondering if there is a way to programmatically get the attachments
   attached to the current page, from (a) specific categories/category, and list
   these in a simple html list? I can’t use the gallery tag since it only displays
   images, and this should be a part of every page so it makes more sense placing
   it directly into the template files.
 * Thank you very much, really nice plugin!
 * [http://wordpress.org/extend/plugins/media-categories-2/](http://wordpress.org/extend/plugins/media-categories-2/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Eddie Moya](https://wordpress.org/support/users/eddiemoya/)
 * (@eddiemoya)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/get-non-image-attachments-programmatically/#post-3678228)
 * Hey mYrAn,
 * This plugin primarily allows users to categorize their attachments, or to apply
   terms to their attachements from any taxonomy. Attachments is a post type, as
   such they can be queried for just like any other post type and taxonomy.
 * You can programmatically do anything with taxonomized attachments that wordpress
   will allow with any taxonomized post type. The plugin does not however, provide
   any html or front end view for attachments. Even the [gallery] shortcode is not
   provided by the plugin, instead it uses templates built into wordpress for the
   galleries.
 * The plugin gets out of the way, lets you query the media however you like (and
   however WP_Query will allow), and lets you create whatever front end you like
   for those attachments.
 * Does this answer your questions sufficiently? I’m not sure if you were looking
   for something more specific.

Viewing 1 replies (of 1 total)

The topic ‘Get non-image attachments programmatically?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/media-categories-2_f7f7f7.svg)
 * [Media Categories](https://wordpress.org/plugins/media-categories-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-categories-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-categories-2/)
 * [Active Topics](https://wordpress.org/support/plugin/media-categories-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-categories-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-categories-2/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eddie Moya](https://wordpress.org/support/users/eddiemoya/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/get-non-image-attachments-programmatically/#post-3678228)
 * Status: resolved