I can’t work that out.
Over on the plugin website someone wrote:
In the functions.php file change a code
$html .= '<a href="plugins_url('download-attachments/includes/download.php?id='.$attachment['attachment_id'])).'" title="'.$title.'">'.$title.'</a>
on
$attachment_id = $attachment['attachment_id']; // ID вложения
$attachment_page = wp_get_attachment_url( $attachment_id );
$html .= '<a href="'.$attachment_page.'">
I don’t understand what they meant by “on”. Do you replace the top section of code with the bottom section?
Many thanks