Title: Doesn&#039;t work on 3.9.1
Last modified: August 21, 2016

---

# Doesn't work on 3.9.1

 *  Resolved [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/doesnt-work-on-391/)
 * Hi there,
 * Exactly what I need, however in a clean WordPress 3.9.1 install it doesn’t work.
 * **I offer myself to take over the plugin if you don’t have time to.**
 * A somewhat fix to at least download a zip (even though you can not open it later)
   is changing the arguments in the download_zip() function to:
 *     ```
       $args = array(
                   //'post_type' => $this->post_types_attachments,
                   'post_type' => 'attachment',
                   //'numberposts' => null,
                   'post_status' => 'any',
                   'post_parent' => $post_id
               );
       ```
   
 * Thanks
 * [https://wordpress.org/plugins/download-zip-attachments/](https://wordpress.org/plugins/download-zip-attachments/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Ricard Torres](https://wordpress.org/support/users/quicoto/)
 * (@quicoto)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/doesnt-work-on-391/#post-4914168)
 * Solved the issue by releasing a similar plugin myself (simpler and lightweight).
 * [http://wordpress.org/plugins/zip-attachments/](http://wordpress.org/plugins/zip-attachments/)
 *  [Esteban](https://wordpress.org/support/users/tcattitude/)
 * (@tcattitude)
 * [12 years ago](https://wordpress.org/support/topic/doesnt-work-on-391/#post-4914273)
 * For me, the same happened.
 * With the default, i was just receiving an empty array (ans the post has attachments,
   a gallery).
 * Also,
    The plugin defines a javascript funcion: function download_zip_attachments_()
 * That uses jQuery to perform the ajax request, but is pointing to /wp-admin/admin-
   ajax.php
    Assumes that we have our blog at the document_root
 * It needs to use just `ajaxurl` as url for the ajax request. That js var point
   to the right admin-ajax.php file into wp-admin.

Viewing 2 replies - 1 through 2 (of 2 total)

 The topic ‘Doesn't work on 3.9.1’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/download-zip-attachments_f7f5dc.svg)
 * [Download Zip Attachments](https://wordpress.org/plugins/download-zip-attachments/)
 * [Support Threads](https://wordpress.org/support/plugin/download-zip-attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/download-zip-attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-zip-attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-zip-attachments/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Esteban](https://wordpress.org/support/users/tcattitude/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/doesnt-work-on-391/#post-4914273)
 * Status: resolved