Horje
Add a "Download" button to your posts, pages or custom post types. This button will then create a zip file of the post attachments.

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 the Tips Below.

Start the Tips:

1. First Download "zip-attachments.zip" Plugin to your Local Computer. (Click Download)

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

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

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"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on "Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. "Zip Attachments" folder is added on left sidemenu. Now, Click on "Zip Attachments" folder.

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

8. Now you configure yourself oR Watch video tutorial below about Zip Attachments Configurtions 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.


post, button, then, create, file, attachments, types, custom, your, posts,

Name

Reffered: https://wordpress.org/

Share on: