Zip Attachments Plugin WordPress, Download, Install
Add a "Download" button to your posts, pages or custom post types. This button will then create a zip file of the post attachments.
Zip Attachments Download Now
(If the link does not work)↓
Originals Link WordPress.org
https://wordpress.org/plugins/zip-attachments/
How to Install Zip Attachments Plugin, Manually
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.
<?=function_exists('za_show_button') ? za_show_button("Download") : ''?>
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)
<?=function_exists('za_show_button') ? za_show_button("Download", "true", "(% times)") : ''?>
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.
Video
Screenshots
Plugin Not Working?
If any errors or problems with the plug-in then write comments.
Related:
- Platform Multi-Cloud Platform as a Service Jelastic
- WordPress plugins for bitcoin and cryptocurrencies
- Interview With The Master And Artist Of Cross-Stitch
- ERROR - Post-processing of the image failed likely…
- Choosing a web server operating mode based on…
- Choosing a WordPress caching plugin: benchmarking 18 plugins
- Owner of the GudStory Blog. Webmaster From India.…
- How to install WGET on Windows
Related Posts
TSP Featured Posts Plugin WordPress, Download, Install
Bugerator Plugin WordPress, Download, Install
Seo Optimized Images Plugin WordPress, Download, Install
About The Author
admin
I am are a 5 years has been a freelancer, engaged in web design, website building.