I added that code in my theme’s function.php file, but nothing changed. I explain better the situation: I created a text widget with this code inside:
[download-attachments container="div" container_id="327" title="" style="list" display_icon="1" display_empty="1" display_user="0"]
This widget should be visible on more pages on the right column, but I can see attachments only if the page has the same ID specified in code, otherwise widget shows “No attachments to download” Thanks.