Linux 软件免费装
Banner图

WP Attachments

开发者 Milmor
更新时间 2025年5月26日 00:49
捐献地址: 去捐款
PHP版本: 4.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

media classicpress list attachments file

下载

5.0.11 5.0.10 5.0.12 5.0.5 5.0.6 3.0.1 3.0.2 3.0.3 3.1 3.1.2 3.1.3 3.1.4 3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.3 3.4 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.6 3.6.1 3.7 4.0.1 4.0.2 4.1 4.1.1 3.5 4.0 5.0.3 3.1.1 5.0.4 2.0 3 5.1 5.1.1 5.1.2

详情介绍:

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:

安装:

  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.

屏幕截图:

  • Simple and intuitive options
  • Demo from [www.sanpellegrinoterme.gov.it](http://www.sanpellegrinoterme.gov.it)
  • Backend metabox
  • Attach, unattach, and reattach files in the Media screen

常见问题:

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.

How can I avoid double listing?

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.

How can I reorder files?

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

Developer Filters

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' );

更新日志:

5.1 2025-05-25 5.0.12 5.0.6 2023-02-15 5.0.4 2021-10-20 5.0 2020-11-28 4.4.2 2020-04-29 4.4.1 2020-02-20 Version 4.4 18/11/2017 Version 4.3.6 10/01/2017 Version 4.3.4 06/07/2016 Version 4.3.3 02/04/2016 Version 4.3.2 19/02/2016 Version 4.3.1 18/02/2016 Version 4.3 23/12/2015 Version 4.2 02/08/2015 Version 4.1.2 6/07/2015 Version 4.1.1 1/06/2015 Version 4.1 26/04/2015 Version 4.0.2 Version 4.0.1 Version 4.0 Version 3.7 05/03/2015 Version 3.6.1 28/02/2015 Version 3.6 28/02/2015 Version 3.5.6 21/10/2014 Version 3.5.5 05/09/2014 Version 3.5.4 26/07/2014 Version 3.5.3 20/07/2014 Version 3.5.2 15/07/2014 Version 3.5.1 12/07/2014 Version 3.5 09/07/2014 Version 3.4 08/07/2014 Version 3.3 28/03/2014 Version 3.2.3 26/03/2014 Version 3.2.2 12/03/2014 Version 3.2.1 03/03/2014 Version 3.2 03/03/2014 Version 3.1.4 4/11/2013 Version 3.1.3 27/10/2013 Version 3.1.2 27/10/2013 Version 3.1.1 19/10/2013 Version 3.1 15/09/2013 Version 3.0.4 24/08/2013 Version 3.0.3 23/08/2013 Version 3.0.2 23/08/2013 Version 3.0.1 22/08/2013 Version 3.0 22/08/2013 Version 2.0 04/07/2013 Version 1.0 07/01/2012