This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Custom Post Type 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 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

عکس‌های صفحه

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


  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.

سوالات متداول

  1. Please email me at Post your queries here

نقد و بررسی‌ها

خواندن تمامی 3 نقد و بررسی‌

توسعه دهندگان و همکاران

“Custom Post Type Attachment” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

“Custom Post Type Attachment” به 2 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمک‌هایشان.

ترجمه “Custom Post Type Attachment” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

گزارش تغییرات


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