Banner for Zip Attachments
Add a "Download" button to your posts, pages or custom post types. This button will then create a zip file of the post attachments. Wordpress Tutorial
Noted That:
  • To install correctly this zip-attachments.zip .
  • Fisrt Download the zip-attachments.zip to your computer
  • Extract/Open zip-attachments.zip to Your Computer.
  • Then, Find readme.txt file inside zip-attachments.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " zip-attachments.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Zip Attachments

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Zip Attachments

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Zip Attachments

Step-5 : Now, Browse " zip-attachments.zip " Downloaded plugin from your computer, Where you downloaded " zip-attachments.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Zip Attachments

Step-6 : Now, Click on " Active Plugin "

Activate Zip Attachments

Step-7 : Then, See left Side Menu. " Zip Attachments " folder is added on left Side Menu. Now, Click on " Zip Attachments " folder.

Noted that: If you do not see " Zip Attachments " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Zip Attachments Configurations and Settings or How to work " Zip Attachments " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Zip Attachments " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Zip Attachments
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

First of all activate the Plugin, then you have three choices:

Functions.php

You can show the button after all your content (posts, pages, custom post types) by pasting this snippet at the end of your functions.php file of your theme:


function za_button_print($content)
{ return $content.za_show_button('Download');
}
add_filter('the_content', 'za_button_print');

Single.php (or similar)

Alternatively you can print the button only in certain parts of your theme. Paste the following snippet wherever you want them to show.

Be aware, it should be within the Loop .




Shortcode

Finally you can use the shortcode inside your post content like so:


[za_show_download_button text="Download the file"]

As you can see you can use your own text, the default value is “Download Attachments”.

Download Counter

Each method has a download counter, you need to add additional parameters:

A)


function za_button_print($content)
{ return $content.za_show_button('Download', 'true', '(% times)');
}
add_filter('the_content', 'za_button_print');

B)




C)


[za_show_download_button text="Download the file" counter="true" counter_format="(% times)"]

NOTE: the default counter format is (%) , where % is actual number. The plugin will automatically replace this character with the download count.


Name