Linux 软件免费装
Banner图

Attachments

开发者 jchristopher
更新时间 2022年2月11日 01:09
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 5.9.0
版权: GPLv2 or later
版权网址: 版权信息

标签

post posts page photos pages image images doc jpg attachment picture pictures PDF Word jpeg

下载

1.5 1.5.1 1.5.1.1 1.5.1.2 1.5.10 1.5.2 1.5.3 1.5.3.1 1.5.3.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6 1.6.2 1.6.2.1 3.0.6 3.0.7 3.0.8 3.0.8.1 3.0.8.2 3.1 3.1.1 3.1.2 3.1.4 3.2 3.3 3.3.1 3.3.2 3.3.3 3.4 3.4.2 3.4.2.1 1.0 1.0.1 1.0.3 1.0.4 1.0.4.1 1.0.4.2 1.0.5 1.0.7 1.0.7.1 1.0.8 1.0.9 1.1 1.1.1 1.6.1 3.1.3 3.5 3.5.1 3.5.1.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.5.7 3.5.9 1.0.2

详情介绍:

Extensive usage instructions are available on GitHub Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types. Extend Attachments with add-ons This plugin does not directly interact with your theme, you will need to edit your template files. If you prefer working with a UI, take a look at Attachments UI Associate Media items with posts The idea behind Attachments is to give developers the ability to directly associate Media items with any post. This is accomplished by adding a meta box to post edit screens as determined by the developer. Once Media items have been associated with a post, you're able to retrieve those Attachments and include them directly within your template files using any specific markup you wish. Integrate Attachments within your theme with fine grained control Attachments does not automatically integrate itself with your theme. Since the idea behind Attachments is to allow integration of Media within posts using developer-crafted, unique markup, it's up to you to integrate with your theme. The most basic integration includes editing the appropriate template file and adding your call(s) to Attachments. For example, if you have set up Attachments to be used with your Posts entries, edit single.php to include the following within The Loop: `<?php $attachments = new Attachments( 'attachments' ); / pass the instance name / ?> exist() ) : ?> Attachments Total Attachments: total(); ?> ` That snippet will request all of the existing Attachments defined for the current Post within The Loop, and retrieve each itemized property for that Attachment. Using the provided details you're able to integrate the attached Media items in any way you please. There is a lot more information on Attachments' GitHub page. Please contribute!

安装:

  1. Download the plugin and extract the files
  2. Upload attachments to your ~/wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Implement Attachments in your theme's functions.php or your own plugin (see Other Notes > Usage)
  5. Update your templates where applicable (see Other Notes > Usage)
Upgrading from version 1.x You will need to update your theme files that use Attachments 3.0. Version 1.x of Attachments has been fully deprecated but is still available and included with Attachments 3.x. If you would like to continue to use the (no longer supported) 1.x version you may add the following to your wp-config.php: define( 'ATTACHMENTS_LEGACY', true ); // force the legacy version of Attachments Version 3 is a major rewrite. While I've taken precautions in ensuring you won't lose any saved data it is important to back up your database prior to upgrading in case something goes wrong. This version is a complete rewrite so all legacy data will be left in place, but a migration must take place to match the new data storage model and workflow.

屏幕截图:

  • An Attachments meta box sitting below the content editor
  • Direct integration with WordPress 3.5+ Media
  • Attach multiple files at once
  • Custom fields for each Attachment
  • Drag and drop to sort

升级注意事项:

3.0 Now piggybacking the awesome Media workflow introduced in WordPress 3.5

常见问题:

How do I customize this plugin?

Please use Attachments UI or see the documentation

This doesn't answer my question

Please see Issues on GitHub

更新日志:

Please see Attachments' changelog on GitHub 3.5.9 3.5.8 3.5.7 3.5.6 3.5.5 3.5.4 3.5.3 3.5.2 3.5.1.1 3.5.1 3.5 3.4.3 3.4.2.1 3.4.2 3.4.1 3.4 3.3.3 3.3.2 3.3.1 3.3 3.2 3.1.4 3.1.3 3.1.2 3.1.1 3.1 3.0.9 3.0.8.2 3.0.8.1 3.0.8 3.0.7 3.0.6 3.0.5 3.0.4 3.0.3 3.0.2 3.0.1 3.0