• 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.

    The suggested code can be changed to:

    <?php echo function_exists('za_show_button') ? za_show_button("Download") : '' ?>

    https://www.ads-software.com/plugins/zip-attachments/

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