Powerful solution to manage and show your WordPress media in posts and pages
WP Attachments is a plugin that enhance the download experience and file managing in WordPress. It adds some features for attachments and automagically shows them in posts and pages.
When you upload a file, the download link will be automatically shown after the content without manual insert of the html link in the content.
Includes utilities for attaching, unattaching or reattaching assets in the media library.
Demo: www.sanpellegrinoterme.gov.it
🤖 Automatic function to show your attachments
ℹ️ Backend writing metabox
🔃 Fast Attach, Unattach and Reattach files in the “Media” menu
🔢 Download counter with anti-spamming system and logged users filter
🧑💻 Developer hooks and filters
🛍️ WooCommerce compatibile
🎨 5 icon packs to choose from
📜 Support for pages, posts and custom post types
🎢 Customizable themes with many options (title, date, size, caption…)
Install the plugin either via the WordPress.org plugin directory, or by uploading the files to your server
After activating, you’ve all done. If you want to customize it, please have a look to Settings -> WP Attachments
You will also notice a new metabox while editing a post, page or whatever custom post type. In addition you can find new features in the media page: “Attach”+”Reattach”
The list generated
Simple and intuitive options
Demo from www.sanpellegrinoterme.gov.it
Metabox (back-end)
WP Attachments allows you to attach, unattach and reattach files in "Media" screen
While in the edit screen, you will see the plugin metabox that lists every file uploaded to the content. At the bottom-right of this metabox you can easily turn off the automatic listing by checking Disable.
When you upload a file, you usually click to insert the link in the content. Please note that this action is not required with WP Attachments. When you upload a file, WordPress assigns it to the content ID (even if its link is not inserted as html) and WP Attachments will show it. Instead of clicking “Insert in this page”, just click “X” in the upper right corner of the media popup. The file will still be there, and this plugin will show it!
Just drag them while editing the page (in WP Attachments metabox or Media Popup)
WP Attachments includes many filters to allow developers easily change its behaviour 🙂
Examples:
function my_custom_function( $html ) { //Alter final html return $new_html; } add_filter( 'wpatt_list_html', 'my_custom_function' ); function my_custom_function( $mime ) { //This snippet shows only PDF in the list if ( $mime == 'applicationpdf') { return true; } return false; } add_filter( 'wpatt_accepted_formats', 'my_custom_function' );