Title: [Plugin: File Gallery] Attachment list loads wrongly
Last modified: August 20, 2016

---

# [Plugin: File Gallery] Attachment list loads wrongly

 *  [imjscn](https://wordpress.org/support/users/imjscn/)
 * (@imjscn)
 * [14 years ago](https://wordpress.org/support/topic/plugin-file-gallery-attachment-list-loads-wrongly/)
 * Hello Aesqe,
    Thanks for the wonderful plugin! It offers all the features that
   I love. However, the features not fully dancing for me yet.
 * 1. When I create a new post, in the File Gallery Attachment List, all attachments
   in WP Library get loaded. I guess it should load only the attachments that attached
   to current post?
 * 2. When I check a file and click Insert a Single File or Insert a Gallery, nothing
   happens. After save post, from the Library list, I can see no file is attached
   to the post.
 * 3. If I click refresh, all files gone. It says 0 attachments even when I already
   uploaded a new file to current post(can see it is attached to the post in WP 
   Library list).
 * What should I do to get the attachment list showing current post’s attachments?
 * Thanks!
 * [http://wordpress.org/extend/plugins/file-gallery/](http://wordpress.org/extend/plugins/file-gallery/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [imjscn](https://wordpress.org/support/users/imjscn/)
 * (@imjscn)
 * [14 years ago](https://wordpress.org/support/topic/plugin-file-gallery-attachment-list-loads-wrongly/#post-2756877)
 * [@aesqe](https://wordpress.org/support/users/aesqe/), I got the correct attachments
   list by modify the input of ID in main-form.php:
    `<?php echo file_gallery_list_attachments(
   $count_attachments, $_POST['post_id'], $attachment_order, $checked_attachments,
   $attachment_orderby); ?>`
 * Now the attachments of current post get loaded. I’m not sure if this is a bug
   or it’s just my theme’s problem.
 * by the way, the question #2 still not solved. If I set link to parent-post, I
   can see a shortcode is printed in editor. But, if not set to parent-post, I get
   nothing. What is supose to happen when click Insert a file or a gallery?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: File Gallery] Attachment list loads wrongly’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-gallery_fdfbfb.svg)
 * [File Gallery](https://wordpress.org/plugins/file-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/file-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/file-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/file-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-gallery/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [imjscn](https://wordpress.org/support/users/imjscn/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-file-gallery-attachment-list-loads-wrongly/#post-2756877)
 * Status: not resolved