![]() |
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:
|
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. 3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard. 4. Now, Click on "Upload Plugin" button.
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" 6. Now, Click on "Active Plugin" 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,
![]() |
Guide |
---|
First of all activate the Plugin, then you have three choices: Functions.phpYou 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:
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.
ShortcodeFinally you can use the shortcode inside your post content like so:
As you can see you can use your own text, the default value is “Download Attachments”. Download CounterEach method has a download counter, you need to add additional parameters: A)
B)
C)
NOTE: the default counter format is |
post, button, then, create, file, attachments, types, custom, your, posts, |
Name |
---|
Reffered: https://wordpress.org/