Title: [Plugin: Attachments] post_parent doesn&#039;t work?
Last modified: August 20, 2016

---

# [Plugin: Attachments] post_parent doesn't work?

 *  [takeok](https://wordpress.org/support/users/takeok/)
 * (@takeok)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-attachments-post_parent-doesnt-work/)
 * Perhaps I’m not understanding the post_parent feature of the Attachments plugin.
   I can’t find any documentation. My assumption is that using the post_parent option
   means that any attachments added via the Attachments plugin interface would also
   be added as standard WordPress attachments… and would therefore show up in the“
   Gallery” tab of the media library for a post and be query-able via standard WordPress
   functions queries and functions like:
 *     ```
       $args = array(
       	'post_type' => 'attachment',
       	'post_parent' => $post->ID,
       );
       $attachments = get_posts($args);
       etc...
       ```
   
 * and
 * `wp_get_attachment_image()`
 * That does not seem to be the case however. I can’t seem to grab any attachments
   using standard WordPress queries and functions. The only way I can get the plugin
   to work is with it’s native attachments_get_attachments() function. Am I just
   missing something? Or not understanding the post_parent feature of the plugin?
   By the way, this is the free version and I’m using it with a Custom Post Type…
   if that matters.

The topic ‘[Plugin: Attachments] post_parent doesn't work?’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [takeok](https://wordpress.org/support/users/takeok/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-attachments-post_parent-doesnt-work/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
