• Resolved Ricard Torres

    (@quicoto)


    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://ww.wp.xz.cn/plugins/download-zip-attachments/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ricard Torres

    (@quicoto)

    Solved the issue by releasing a similar plugin myself (simpler and lightweight).

    http://ww.wp.xz.cn/plugins/zip-attachments/

    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.