** this plugin is no longer being update.
**此插件不再更新。
Please feel free to adopt me!
请随时收养我!
**
** p>
Allows users to add custom fields to the media uploader and access those fields in template files.
允许用户将自定义字段添加到媒体上载器并访问模板文件中的那些字段。
Great for adding copyrights etc.
非常适合添加版权等。 p>
Includes the following functions to help improve your website:
包括以下功能来帮助改善您的网站: p>
thisismyurl_get_custom_media_field( $attachment_id, $unique_field_id )
– Fetches the value-
thisismyurl_get_custom_media_field($ attachment_id,$ unique_field_id) code> –获取值 li>thisismyurl_has_custom_media_field( $attachment_id, $unique_field_id )
– Returns boolean value-
thisismyurl_has_custom_media_field($ attachment_id,$ unique_field_id) code> –返回布尔值 li>thisismyurl_custom_media_field( $attachment_id, $unique_field_id )
– Displays the value-
thisismyurl_custom_media_field($ attachment_id,$ unique_field_id) code> –显示值 li>
ul>
To use this plugin effectively, download and intall it on your WordPress blog.
要有效使用此插件,请在WordPress博客上下载并安装该插件。
Next, access the settings page (Settings > Add Custom Fields to Media) and create a new custom field for your media uploads.
接下来,访问设置页面(“设置”>“向媒体添加自定义字段”)并为您的媒体上传创建一个新的自定义字段。 p>
ul>
Once you’ve added a custom field, you can access it via the Media menu in WordPress or during the Add Media process of uploading a new item.
添加自定义字段后,您可以通过WordPress中的“媒体”菜单或在上传新项目的“添加媒体”过程中访问它。 p>
To display the information on your website, please use thisismyurl_custom_media_field( $attachment_id, $unique_field_id )
.
要显示您网站上的信息,请使用 thisismyurl_custom_media_field($ attachment_id,$ unique_field_id) code>。 p>If you would like to load the contents into a variable, please use thisismyurl_get_custom_media_field( $attachment_id, $unique_field_id )
如果要将内容加载到变量中,请使用 thisismyurl_get_custom_media_field($ attachment_id,$ unique_field_id) code> p>To check if a variable exists, use thisismyurl_has_custom_media_field( $attachment_id, $unique_field_id )
要检查变量是否存在,请使用 thisismyurl_has_custom_media_field($ attachment_id,$ unique_field_id) code> p>In all cases the $unique_field_id is the Unique ID you specified when creating the field.
在所有情况下,$ unique_field_id是您在创建字段时指定的唯一ID。 p>
The $attachment_id is the ID of the attachment itself (not the post that you’re working with).
$ attachment_id是附件本身的ID(而不是您正在使用的帖子)。 p>
Updates
更新 h3>
Updates to the plugin will be posted to http://thisismyurl.com/downloads/add-custom-fields-to-media/
对该插件的更新将发布到http://thisismyurl.com/downloads/add-custom-fields-to-media/ p>
Donations
捐赠 h3>
If you would like to donate to help support future development of this tool, please visit http://thisismyurl.com/downloads/wordpress-plugins/
如果您想捐款以支持该工具的未来开发,请访问http://thisismyurl.com/downloads/wordpress-plugins/ p>