Title: Custom Post Type Attachment
Author: aviplugins.com
Published: <strong>2014 年 2 月 24 日</strong>
Last modified: 2024 年 12 月 31 日

---

搜索插件

![](https://ps.w.org/custom-post-type-pdf-attachment/assets/banner-772x250.png?rev
=1421734)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/custom-post-type-pdf-attachment/assets/icon-256x256.png?rev
=2067420)

# Custom Post Type Attachment

 作者：[aviplugins.com](https://profiles.wordpress.org/avimegladon/)

[下载](https://downloads.wordpress.org/plugin/custom-post-type-pdf-attachment.3.4.6.zip)

 * [详情](https://cn.wordpress.org/plugins/custom-post-type-pdf-attachment/#description)
 * [评价](https://cn.wordpress.org/plugins/custom-post-type-pdf-attachment/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/custom-post-type-pdf-attachment/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/custom-post-type-pdf-attachment/#developers)

 [支持](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/)

## 描述

 * This plugin will allow you to upload files to your post or pages or any other
   custom post types.
 * You can eather use shortcodes or functions to display attachments.
 * just install the plugin and update setting from `Settings-> Custom Post Type 
   Attachment`.
 * Upload files in your post/page edit page.
 * Display files in frontend using shortcodes or using custom functions.

#### 用法

 * Display all attachments with a single shortcode [pdf_all_attachments]
 * Display Single attachment [pdf_attachment file=”file_number” name=”optional file_name”]
 * Example: [pdf_attachment file=”1″ name=”PDF File 1″]
 * 或
 * pdf_attachment_file(“file_number”,”optional file_name”);
 * Example: <?php echo pdf_attachment_file("1","PDF File 1"); ?>

#### Custom Post Type Attachment PRO

There is a PRO version of this plugin that supports unlimited files to upload with
multiple file types. You can get it [here](https://www.aviplugins.com/custom-post-type-attachment-pro/)
in **USD 1.50**

 * Attachment number can be Increased / Decreased from the post edit page. You can
   upload other type of files also. Supported files that can be uploaded are PDF,
   TXT, JPG, JPEG, BMP, GIF, PNG, DOC, DOCX, XLS, CSV, PPT, PPTX, ZIP.
 * Every file can be marked as Hidden. These files will be hidden from visitors 
   of the site. Only Logged In users will be able to download these files. For others
   a message will be displayed in place of the hidden files. This message can be
   updated from admin panel.
 * You can select the user types that you want to give Permission to be able download
   the attachment files. Only selected user types will have permission to download
   the attachments.
 * More Advanced File Download feature.
 * Users can be asked to enter basic details like Name, Email & Phone Number before
   they can download the Attachments.
 * Files Attachment option can be enabled in the WordPress default comments section
   as well.
 * Files can be embedded in the page content. Users can view the content of the 
   file before download.
 * Supported document files that can be embedded are Adobe Acrobat (PDF), Microsoft
   Word (DOC), Microsoft PowerPoint (PPT), Microsoft Excel (XLS)
    [Click here to find out in details](https://www.aviplugins.com/custom-post-type-attachment-pro/)

> Post your plugin related queries at [https://www.aviplugins.com/support.php](https://www.aviplugins.com/support.php)

## 屏幕截图

[⌊Frontend view⌉⌊Frontend view⌉[

Frontend view

[⌊Settings page view⌉⌊Settings page view⌉[

Settings page view

[⌊Post edit page view⌉⌊Post edit page view⌉[

Post edit page view

[⌊Shortcode view⌉⌊Shortcode view⌉[

Shortcode view

[⌊Latest attachments widget⌉⌊Latest attachments widget⌉[

Latest attachments widget

[⌊Widget settings⌉⌊Widget settings⌉[

Widget settings

## 安装

 1. Upload `custom-pos-type-pdf-attachment.zip` to the `/wp-content/plugins/` directory.
 2. 通过WordPress的“插件”菜单激活插件。
 3. Go to `Settings-> Custom Pdf Attachment`, and set some options. It’s really easy.
 4. Use shortcodes or functions to display uploaded files in frontend.

## 常见问题

 1. Please email me at demoforafo.com. Post your queries here https://www.aviplugins.
    com/support.php

## 评价

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

### 󠀁[Does exactly what I want](https://wordpress.org/support/topic/does-exactly-what-i-want-7/)󠁿

 [RobinKMullins](https://profiles.wordpress.org/robinkmullins/) 2016 年 9 月 3 日

Quick and easy. I use it every day to post local court information which comes to
me a pdf files. Sweet.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/)

## 贡献者及开发者

「Custom Post Type Attachment」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ aviplugins.com ](https://profiles.wordpress.org/avimegladon/)

「Custom Post Type Attachment」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-pdf-attachment/contributors)
为本插件所做的贡献。

[帮助将「Custom Post Type Attachment」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-pdf-attachment)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/custom-post-type-pdf-attachment/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/custom-post-type-pdf-attachment/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/custom-post-type-pdf-attachment/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/custom-post-type-pdf-attachment/)。

## 更新日志

#### 3.4.6

 * Bug fixes.

#### 3.4.5

 * Improvements.

#### 3.4.4

 * Bug fix after version 3.4.3 update.

#### 3.4.3

 * Now other type of files are also supported for uploading. File size can also 
   be displayed beside file names.

#### 3.4.2

 * Bug fixes and improvements.

#### 3.4.1

 * Bug fixes.

#### 3.4.0

 * Minor bug fixes.

#### 3.3.9

 * Compatibility added for older versions of the plugin. Please deactivate and reactivate
   the plugin once after update.

#### 3.3.8

 * Now files can be attached from the media library as well. This can be toggled
   from plugin settings if users don’t want the attachments to be in the media library.

#### 3.3.7

 * Now attachments can be viewed from the listing page in admin panel. Widget added
   to display latest attachments.

#### 3.3.6

 * Some design elements are updated.

#### 3.3.5

 * Plugin code structure updated. Now the plugin will work much faster.

#### 3.3.4

 * Plugin code updated.

#### 3.3.3

 * Bug fixed.

#### 3.3.2

 * PDF attachment functionality updated.

#### 3.3.1

 * Bug fixed.

#### 3.3.0

 * Plugin Dashboard look & feel updated.

#### 3.2.4

 * Plugin code updated.

#### 3.2.3

 * Plugin code updated.

#### 3.2.2

 * Bug fixes.

#### 3.2.1

 * Option to display all attachments with a single shortcode or function.

#### 3.2.0

 * Plugin is now multilingual.

#### 3.1.1

 * Code updated with some security modifications.

#### 3.1.0

 * plugin code updated.

#### 3.0.0

 * Code updated with some security modifications.

#### 2.2.1

 * news dashboard widget optimized.

#### 2.2.0

 * aviplugins.com news dashboard widget added.

#### 2.1.5

 * Notice message bug fixed.

#### 2.1.4

 * Notice message bug fixed.

#### 2.1.3

 * admin menu related bug fixed.

#### 2.1.2

 * bug fixed.

#### 2.0.2

 * Delete Attachment functionality added.

#### 2.0.1

 * Solved Pdf icon missing error.

#### 1.0.1

 * This is the first release.

## 额外信息

 *  版本 **3.4.6**
 *  最后更新：**1 年前**
 *  活跃安装数量 **800+**
 *  WordPress 版本 ** 2.0.2 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-post-type-pdf-attachment/)、
   [French (France)](https://fr.wordpress.org/plugins/custom-post-type-pdf-attachment/)
   和 [Italian](https://it.wordpress.org/plugins/custom-post-type-pdf-attachment/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/custom-post-type-pdf-attachment)
 * 标签
 * [attachment](https://cn.wordpress.org/plugins/tags/attachment/)[download](https://cn.wordpress.org/plugins/tags/download/)
   [file](https://cn.wordpress.org/plugins/tags/file/)[file attachment](https://cn.wordpress.org/plugins/tags/file-attachment/)
   [upload](https://cn.wordpress.org/plugins/tags/upload/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-post-type-pdf-attachment/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/reviews/)

## 贡献者

 *   [ aviplugins.com ](https://profiles.wordpress.org/avimegladon/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/custom-post-type-pdf-attachment/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.aviplugins.com/donate/)