Title: Download function does not properly create button; fix inside
Last modified: August 30, 2016

---

# Download function does not properly create button; fix inside

 *  [pkarjala](https://wordpress.org/support/users/pkarjala/)
 * (@pkarjala)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/download-function-does-not-properly-create-button-fix-inside/)
 * The example provided for single.php in readme.txt does not correctly display 
   the download button.
 * The current suggested code is:
 * `<?=function_exists('za_show_button') ? za_show_button("Download") : ''?>`
 * However, because `za_show_button` only returns the text, nothing gets displayed.
 * This can be fixed by changing the function name to follow WordPress conventions,
   such as “`za_get_button`“, which implies that it returns a value to be echoed
   or manipulated.
 * In addition, `<?` should always be an explicit `<?php` as per [WordPress php standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#no-shorthand-php-tags).
 * The suggested code can be changed to:
 * `<?php echo function_exists('za_show_button') ? za_show_button("Download") : ''?
   >`
 * [https://wordpress.org/plugins/zip-attachments/](https://wordpress.org/plugins/zip-attachments/)

The topic ‘Download function does not properly create button; fix inside’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/zip-attachments_b6b8b6.svg)
 * [Zip Attachments](https://wordpress.org/plugins/zip-attachments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zip-attachments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zip-attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/zip-attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zip-attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zip-attachments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pkarjala](https://wordpress.org/support/users/pkarjala/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/download-function-does-not-properly-create-button-fix-inside/)
 * Status: not resolved