Title: WP Attachments
Author: Marco Milesi
Published: <strong>7 Gennaio 2012</strong>
Last modified: 14 Marzo 2026

---

Ricerca i plugin

![](https://ps.w.org/wp-attachments/assets/banner-772x250.png?rev=3308377)

![](https://ps.w.org/wp-attachments/assets/icon-256x256.png?rev=2617427)

# WP Attachments

 Di [Marco Milesi](https://profiles.wordpress.org/milmor/)

[Scarica](https://downloads.wordpress.org/plugin/wp-attachments.5.3.4.zip)

 * [Dettagli](https://it.wordpress.org/plugins/wp-attachments/#description)
 * [Recensioni](https://it.wordpress.org/plugins/wp-attachments/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/wp-attachments/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/wp-attachments/#developers)

 [Supporto](https://wordpress.org/support/plugin/wp-attachments/)

## Descrizione

WP Attachments enhances the download experience and file management in WordPress.
It automatically displays attachments in your posts and pages, so you don’t need
to manually insert download links.
 Easily attach, unattach, or reattach files directly
from the media library.

**Key Features:**
 – 🤖 Automatically displays attachments after post content – 
ℹ️ Backend metabox for managing attachments – 🔃 Quick Attach, Unattach, and Reattach
actions in the Media Library – 🔢 Download counter with anti-spam and logged-in 
user filtering – 🧑‍💻 Developer hooks and filters for customization – 🛍️ WooCommerce
compatible – 🎨 Five icon packs to choose from – 📜 Supports posts, pages, and custom
post types – 🎢 Customizable themes (title, date, size, caption, and more)

[Panoramica video](https://www.youtube.com/watch?v=J7gf0hxl_z8)

### Contributi

 * Part of [WPGov.it](http://www.wpgov.it), providing open source solutions for 
   Italian Public Government websites.
 * Grazie alla community italiana di [Porte Aperte sul Web](http://www.porteapertesulweb.it)
   per le prove e le idee.
 * Metabox basato su [IJ Post Attachments](https://wordpress.org/plugins/ij-post-attachments/)
 * Alcune icone da [Yusuke Kamiyamane](http://p.yusukekamiyamane.com/).

## Screenshot

 * [[
 * The generated attachment list
 * [[
 * Opzioni semplici e intuitive
 * [[
 * Demo da [www.sanpellegrinoterme.gov.it](http://www.sanpellegrinoterme.gov.it)
 * [[
 * Backend metabox
 * [[
 * Attach, unattach, and reattach files in the Media screen

## Installazione

 1. Install via the WordPress.org plugin directory or upload the files to your server.
 2. Activate the plugin. To customize, go to **Settings  WP Attachments**.
 3. While editing a post, page, or custom post type, you’ll see a new metabox for managing
    attachments. Additional features are available in the Media Library: Attach, Reattach.

## FAQ

### How can I hide the attachment list for a specific page?

In the edit screen, use the plugin’s metabox to disable the automatic listing by
checking **Disable** at the bottom right.

### Come posso evitare una doppia voce?

You don’t need to insert file links manually. When you upload a file, it’s automatically
assigned to the content and displayed by WP Attachments. Just close the media popup
after uploading.

### Come posso riordinare i file?

Drag and drop attachments in the WP Attachments metabox or Media Popup while editing.

### Filtri per Sviluppatori

WP Attachments includes many filters for developers:

 * **wpatt_list_html** — Filter the entire list output (`$html`)
 * **wpatt_before_entry_html** — Filter single entry output before tag parsing (`
   $html`)
 * **wpatt_after_entry_html** — Filter single entry output after tag parsing (`$
   html`)
 * **wpatt_accepted_formats** — Filter which files are shown (`$mime`)

**Examples:**

    ```
    `php
    ```

function my_custom_function( $html ) {
 // Alter final HTML return $new_html; } 
add_filter( ‘wpatt_list_html’, ‘my_custom_function’ ); `

    ```
    `php
    ```

function my_custom_function( $mime ) {
 // Only show PDFs in the list return $mime
== ‘application/pdf’; } add_filter( ‘wpatt_accepted_formats’, ‘my_custom_function’);`

## Recensioni

![](https://secure.gravatar.com/avatar/75134204f23d1efab7132b632225fcb8b5170bdc4da6c7303a7c6f0286fe89da?
s=60&d=retro&r=g)

### 󠀁[Ottimo! Aggiornamento?](https://wordpress.org/support/topic/ottimo-aggiornamento/)󠁿

 [baritono](https://profiles.wordpress.org/baritono/) 1 Ottobre 2023

E’ un fantastico plugin, con tutta la sua semplicità. Metto 5 stelle con la speranza
che l’autore lo vorrà aggiornare. Perché ad esempio, ogni volta che aggiorno un/
a pagina/articolo gli allegati si attivano automaticamente, anche se prima erano
disattivati. Sarebbe meglio averli disattivati in default.

![](https://secure.gravatar.com/avatar/fda8a9480f6a1c3d3f269c266faf9fea24945c953f15266564a4cc446a9fbac8?
s=60&d=retro&r=g)

### 󠀁[Plugin is not working anymore](https://wordpress.org/support/topic/plugin-is-not-working-anymore-8/)󠁿

 [orangeletter2](https://profiles.wordpress.org/orangeletter2/) 17 Maggio 2023

The plugin is abandoned by the original developer and lacks functionality. It does
not work anymore.

![](https://secure.gravatar.com/avatar/a3d9229e01f5d040be9637a126f5c3d090cc06048b0e60a65109734e90006356?
s=60&d=retro&r=g)

### 󠀁[give the box a class so that it’s styleable](https://wordpress.org/support/topic/give-the-box-a-class-so-that-its-styleable/)󠁿

 [rebelord](https://profiles.wordpress.org/rebelord/) 5 Agosto 2022

also I’d love an option not to show the list at all in frontend – i would use it
only for unattaching in the backend. A zip-all-attachments download would be nice.
And as mentioned, images in the list should be shown as thumbnails. Also there is
a bug – when I edit the post and then try to unattach, it wants to reload and leave
the post unsaved. Ajax would suit better.

![](https://secure.gravatar.com/avatar/c499b086e15ee97f3f124feb5e6a1a31c017222a819fe35f8a15dcdd1f1f4017?
s=60&d=retro&r=g)

### 󠀁[Simple Yet Effective](https://wordpress.org/support/topic/simple-yet-effective-67/)󠁿

 [renpub](https://profiles.wordpress.org/renpub/) 24 Febbraio 2022

I tried over a dozen other plugins in order to display a simple list of PDFs which
the user can upload and display on a page. I was relieved to finally find WP Attachments
worked as expected and was simple to set up. Php 8 update, if needed, would be great
and compatibility with page builders and ease of CSS customisation are always welcome
features. Thank you for your work which is much appreciated.

![](https://secure.gravatar.com/avatar/8cf6bfb5609fd210003bbe033fd0a85ec9a8a577be9e715c4ff63b81f7a80495?
s=60&d=retro&r=g)

### 󠀁[Great functionality, not so great code](https://wordpress.org/support/topic/great-functionality-not-so-great-code/)󠁿

 [valebubble](https://profiles.wordpress.org/valebubble/) 1 Dicembre 2021

This plugin is simple but very focused and achieves what it needs to. That said,
the underlying code is messy and at times poorly written. For example, the attachments
div has no class or id so you can’t target it with css. It forces its style using
the “style” attribute which is pretty bad for customizability. I had to use a filter
and wrap it in another div just to have a class I could target with custom CSS. 
Another big issue: in the admin options, I am not able to use a custom template 
for the attachment title. Selecting the “Custom” option does nothing because the
plugin: – Uses a script HTML tag to load jQuery from an external CDN, in the middle
of the page. This is not the Wordpress standard way of loading jQuery (or any script
at all) and can potentially cause many issues. – Attempts to use the “$” variable
instead of using “jQuery”. This causes an error (TypeError: $ is not a function)
that blocks the execution of javascript and prevents the options from working correctly.
So if the plugin works for you out-of-the-box, that’s great. If you need to adapt
it somehow, be aware that the code is very hard to work with.

![](https://secure.gravatar.com/avatar/eb0fc748ae4a637172fa16fcecc04de6e16ba78a5271ea301302ec5960f1bc0f?
s=60&d=retro&r=g)

### 󠀁[Ottimo Plugin!](https://wordpress.org/support/topic/ottimo-plugin-260/)󠁿

 [lombino](https://profiles.wordpress.org/lombino/) 20 Settembre 2021

Bravo!!

 [ Leggi tutte le recensioni di 42 ](https://wordpress.org/support/plugin/wp-attachments/reviews/)

## Contributi e sviluppo

“WP Attachments” è un software open source. Le persone che hanno contribuito allo
sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ Marco Milesi ](https://profiles.wordpress.org/milmor/)

“WP Attachments” è stato tradotto in 6 lingue. Grazie a [chi traduce](https://translate.wordpress.org/projects/wp-plugins/wp-attachments/contributors)
per il contributo.

[Traduci “WP Attachments” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/wp-attachments)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/wp-attachments/) 
segui il [repository SVN](https://plugins.svn.wordpress.org/wp-attachments/), segui
il [log delle modifiche](https://plugins.trac.wordpress.org/log/wp-attachments/)
tramite [RSS](https://plugins.trac.wordpress.org/log/wp-attachments/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 5.3.4 2026-03-14

 * Minor fixes and improvements.

#### 5.3 2026-02-02

 * Better permission handling
 * Redesigned settings screen

#### 5.2.1 2026-01-19

 * Minor fixes and improvements.

#### 5.2 2025-06-09

 * Fixed regression with images (thanks @reesher + @steeltape for feedback)
 * Added option to enable/disable for specific custom post types (completely or 
   only frontend)
 * Other minor fixes and improvements.

#### 5.1 2025-05-25

 * Date placeholders in attachment templates now use the WordPress date format setting(`
   Settings > General > Date Format`) for better localization and consistency.
 * Improved templating: You can now use WordPress date formatting in your custom
   templates, and templating settings are more flexible and reliable.
 * Other minor fixes and improvements.
 * Major code refactoring for improved stability and maintainability
 * Significant performance improvements
 * Enhanced security throughout the plugin
 * Improved admin capabilities and permission handling
 * Brand new metabox for easier attachment management
 * Refreshed admin columns for better overview and usability

#### 5.0.12

 * Latest stable release

#### 5.0.6 2023-02-15

 * Controllo di compatibilità
 * Security fixes
 * Minor changes

#### 5.0.4 2021-10-20

 * Controllo di compatibilità
 * Linked development workflows on [GitHub](https://github.com/WPGov/wp-attachments)
 * Minor changes

#### 5.0 2020-11-28

 * WooCommerce compatibility: add files to client orders
 * Major improvements and technical changes
 * Rewritten add_media popup with custom behavior
 * Removed old translation files, now using translate.wordpress.org
 * Minor changes

#### 4.4.2 2020-04-29

 * Miglioramenti minori

#### 4.4.1 2020-02-20

 * Controllo di compatibilità

#### Version 4.4 18/11/2017

 * **Corretto** bug critico per le icone mancanti in WP 4.9
 * Potrebbero verificarsi dei problemi nelle precedenti versioni di WP per le icone.
   Aggiorna!

#### Version 4.3.6 10/01/2017

 * **Testato** con WP 4.7
 * **Corretto** un avviso php nei tipi di post personalizzati con capacità mappate

#### Version 4.3.4 06/07/2016

 * Controllo di compatibilità con WP 4.6

#### Version 4.3.3 02/04/2016

 * Corretto errore nella data del metabox
 * Testato con WP 4.5

#### Version 4.3.2 19/02/2016

 * Corretta segnalazione di errore PHP quando è attivo il debug

#### Version 4.3.1 18/02/2016

 * Esclusione automatica del menu a discesa, se gli allegati < 2

#### Version 4.3 23/12/2015

 * Aggiunta opzione per mostrare un menu a discesa per l’ordinamento
 * Miglioramenti vari e correzioni di errori
 * Aggiunto supporto per translate.wordpress.org

#### Version 4.2 02/08/2015

 * Aggiunte funzioni e filtri per sviluppatori
 * Miglioramenti minori
 * ReadMe dei cambiamenti (aggiunte FAQS)

#### Version 4.1.2 6/07/2015

 * Aggiunta traduzione es_ES da Joaquín Alejandro Duro Arribas
 * Cambiamenti nel ReadMe

#### Version 4.1.1 1/06/2015

 * Testato con l’ultima versione beta
 * Cambiamenti nel Readme

#### Version 4.1 26/04/2015

 * **Aggiunta** opzione per escludere gli utenti registrati dal contatore di download
 * **Corretto** template “esteso”
 * Correzioni minori
 * Cambiamenti minori al readme.txt

#### Version 4.0.2

 * Corretto difetto dell’errore 404 quando il titolo del file contiene caratteri
   speciali (solo per il contatore di download)
 * Miglioramenti minori

#### Version 4.0.1

 * Corretto l’errore di download 404 per alcuni permalinks quando il contatore è
   abilitato

#### Version 4.0

 * Nuova e migliore metabox
 * Aggiunta la funzione contatore di download
 * Agiunti temi per le icone
 * Aggiunti schemi multipli
 * Opzioni ridisegnate
 * Miglioramento delle prestazioni (2 volte più veloce)
 * Miglioramenti minori

#### Version 3.7 05/03/2015

 * Aggiunto filtro ed opzione per impostare il plugin alle viste singola e di pagina
 * Miglioramenti minori delle prestazioni
 * Corretta la versione errata nel pannello delle impostazioni
 * Stile migliore per la lista degli allegati

#### Version 3.6.1 28/02/2015

 * Agiunto controllo per i post protetti da password

#### Version 3.6 28/02/2015

 * Prestazioni migliorate
 * Metabox mgliorato (più veloce & più carino)
 * Pannello opzioni migliorato
 * Aggiunta opzone per disattivare il plugin in determinate pagine

#### Version 3.5.6 21/10/2014

 * **Corretto** conflitto css con il tema WordPress delle scuole italiane “pasw2015”

#### Version 3.5.5 05/09/2014

 * **Aggiunta** icona del plugin
 * **Aggiunta** traduzione in serbo sr_RS
 * Cambiamenti al readme.txt

#### Version 3.5.4 26/07/2014

 * **Corretto** un possibile conflitto con altri plugins (es. Members)
 * **Corretta** la traduzione mancante del bottone “Update” nel pannello delle opzioni(
   per tutte le lingue)

#### Version 3.5.3 20/07/2014

 * **Aggiunta** taduzione in Portoghese Brasiliano da Henrique Avila Vianna

#### Version 3.5.2 15/07/2014

 * **Corretta** la mancata presenza del bottone “Aggiungi media” quando non vi è
   alcun file allegato
 * **Corretta** la mancanza del metabox nelle pagine aggiungi-nuova dell’ “admin”
 * **Aggiornato** l’uploader per essere identico a quello integrato in WordPress
 * **Migliorato** lo stile del bottone “Add media” per corrispondere esattamente
   allo standard di WordPress ‘

#### Version 3.5.1 12/07/2014

 * **Testato** e funzionante con WordPress 4.0 (beta)

#### Version 3.5 09/07/2014

 * Aggiunto collegamento**disallega** nella pagina di amministrazione dei media
 * Aggiunto collegamento**disallega** nell’editor di pagina/post/cpt
 * **Migliorato** il back-end del metabox
 * **Migliorata** la capacilità di gestione per le funzioni allegare/riallegare/
   disallegare
 * **Migliorata** la gestione di alcune variabili
 * **Aggiunta** funzione per controllare se un file non esiste e si deve saltare
   il calcolo dello spazio (al fine di evitare errori di front-end)

#### Version 3.4 08/07/2014

 * Aggiunto collegamento**riallega** nella pagina di amministrazione dei media
 * Aggiunto collegamento**allega** per il file disallegato nella pagina di amministrazione
   dei media

#### Version 3.3 28/03/2014

 * **Aggiunta** un’opzione per aprire i files in una nuova scheda [in Impostazioni-
   > WP Attachments]
 * **Corretto** un conflitto con il plugin “Membri” che causava la comparsa del 
   metabox nella sua pagina delle opzioni
 * **Aggiunto** un/icona “occhio” nel metabox dell’editor per indicare che il file
   sarà elencato

#### Version 3.2.3 26/03/2014

 * **Risolto** conflitto con alcuni plugin per newsletter aggiungendo codice per
   evitare la lista degli allegati se l’id del post scelto è nullo

#### Version 3.2.2 12/03/2014

 * Aggiunto supporto per **MP3**, **ODT**, **ODS**
 * Cambiata la dimensione del testo per i piccoli file: ora viene mostrato “< 1KB”
   invece di “n B”
 * Migliore compatibilità con Internet Explorer

#### Version 3.2.1 03/03/2014

 * Aggiunto wp_enqueue_style per caricare lo stile dal css
 * Prestazioni migliorate

#### Version 3.2 03/03/2014

 * Nuovo sistema di localizazione. Traduzioni in Inglese & Italiano già incluse
 * Nuovo back-end per i metabox . Questo è in versione beta, ma io sono sicuro che
   vi piacerà!
 * Pagina delle opzioni migliorata

#### Version 3.1.4 4/11/2013

 * Corretta la mancanza di ‘Backend.php’ (questa funzione sarà disponibile nelle
   prossime versioni (3.2+)

#### Version 3.1.3 27/10/2013

 * Altre correzioni

#### Version 3.1.2 27/10/2013

 * Corretto un bug che in alcuni casi causava il mancato caricamento del contenuto

#### Version 3.1.1 19/10/2013

 * Il titolo della lista ora viene nascosto correttamente

#### Version 3.1 15/09/2013

 * **Corretta** la mancanza di icone per le immagini
 * **Aggiunta** l’opzione per escludere le immagini dalla lista
 * **Migliorate** le impostazioni del layout della pagina

#### Version 3.0.4 24/08/2013

 * **Readme** cambiamenti minori

#### Version 3.0.3 23/08/2013

 * **Migliorato** l’aspetto nel Css

#### Version 3.0.2 23/08/2013

 * **Corretto** l’errore di attivazione: uscita inaspettata carattere – 1

#### Version 3.0.1 22/08/2013

 * **Corretta** la mancata interpretazione di uno shortcode esterno
 * **Corretto** il codice CSS ridondante
 * **Migliorato** loop
 * Il titolo dell’elenco non compare più per gli allegati vuoti

#### Version 3.0 22/08/2013

 * **Aggiunto** Css per mostrare le icone
 * **Aggiunta** dimensione file
 * **Aggiunti** dati dell’allegato
 * **Aggiunto** panello delle opzioni

#### Version 2.0 04/07/2013

 * Prima versione funzionale. Buon divertimento!

#### Version 1.0 07/01/2012

 * Prima Versione

## Meta

 *  Versione **5.3.4**
 *  Ultimo aggiornamento **1 mese fa**
 *  Installazioni attive **3.000+**
 *  Versione WordPress ** 4.4 o superiore **
 *  Testato fino alla versione **6.9.4**
 *  Lingue
 * [English (US)](https://wordpress.org/plugins/wp-attachments/), [Italian](https://it.wordpress.org/plugins/wp-attachments/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/wp-attachments/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/wp-attachments/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/wp-attachments/), [Spanish (Spain)](https://es.wordpress.org/plugins/wp-attachments/),
   e [Spanish (Venezuela)](https://ve.wordpress.org/plugins/wp-attachments/).
 *  [Traduci nella tua lingua](https://translate.wordpress.org/projects/wp-plugins/wp-attachments)
 * Tag
 * [attachments](https://it.wordpress.org/plugins/tags/attachments/)[ClassicPress](https://it.wordpress.org/plugins/tags/classicpress/)
   [file](https://it.wordpress.org/plugins/tags/file/)[list](https://it.wordpress.org/plugins/tags/list/)
   [media](https://it.wordpress.org/plugins/tags/media/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/wp-attachments/advanced/)

## Valutazioni

 4.5 su 5 stelle.

 *  [  33 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/wp-attachments/reviews/?filter=5)
 *  [  2 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/wp-attachments/reviews/?filter=4)
 *  [  3 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/wp-attachments/reviews/?filter=3)
 *  [  3 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/wp-attachments/reviews/?filter=2)
 *  [  1 1- recensioni a stelle     ](https://wordpress.org/support/plugin/wp-attachments/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-attachments/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/wp-attachments/reviews/)

## Collaboratori

 *   [ Marco Milesi ](https://profiles.wordpress.org/milmor/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/wp-attachments/)

## Donazioni

Vuoi sostenere le versioni future?

 [ Fai una donazione per lo sviluppo ](https://www.paypal.me/milesimarco)