Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Custom Post Type Attachment

Mô tả

  • 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″]
  • Hoặc
  • 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 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

Post your plugin related queries at

Ảnh màn hình

  • Frontend view
  • Settings page view
  • Post edit page view
  • Shortcode view
  • Latest attachments widget
  • Widget settings

Cài đặt

  1. Upload to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in 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.

Hỏi đáp

  1. Please email me at Post your queries here

Đánh giá

Đọc tất cả 3 đánh giá

Người đóng góp & Lập trình viên

“Custom Post Type Attachment” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Custom Post Type Attachment” đã được dịch qua 2 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Custom Post Type Attachment” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi


  • Improvements.


  • Bug fix after version 3.4.3 update.


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


  • Bug fixes and improvements.


  • Bug fixes.


  • Minor bug fixes.


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


  • 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.


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


  • Some design elements are updated.


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


  • Plugin code updated.


  • Bug fixed.


  • PDF attachment functionality updated.


  • Bug fixed.


  • Plugin Dashboard look & feel updated.


  • Plugin code updated.


  • Plugin code updated.


  • Bug fixes.


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


  • Plugin is now multilingual.


  • Code updated with some security modifications.


  • plugin code updated.


  • Code updated with some security modifications.


  • news dashboard widget optimized.


  • news dashboard widget added.


  • Notice message bug fixed.


  • Notice message bug fixed.


  • admin menu related bug fixed.


  • bug fixed.


  • Delete Attachment functionality added.


  • Solved Pdf icon missing error.


  • This is the first release.