Custom Post Type Attachment PRO
This plugin will allow you to upload document files to your posts, pages or any other custom post types that you have in your site. You can either use shortcodes or functions to display attachments. You can upload unlimited number of files as attachments. Restrict files to be downloaded by visitors of the site.
With Shortcode Support
Use this [pdf_attachment file="1"] shortcode to display uploaded document files in posts, pages or custom post types. file is (required)
Example: [pdf_attachment file="1" name="optional file name"]. Or else you can use this function in your template file. file is (required), name is (optional). <?php echo pdf_attachment_file(1,"optional file name"); ?>. Here 1 is the document number, unlimited number of documents can be uploded to every single post.
Use [pdf_all_attachments] to display all Attachments with a single shortcode.
Shortcode Example: [pdf_all_attachments]
Display all Attachments added to a post/ page in your template using this single function <?php echo pdf_all_attachment_files(); ?>
Use This shortcode to embed document files in your post or page content [pdf_attachment_view file="1" width="400" height="500"]. file (required), width (optional), height (optional) Or else you can use this function in your template file. <?php echo pdf_attachment_file_view(1); ?>
Setup and Usage
The setup of this plugin is very simple. In settings page you just have to select the post types where you want the file upload/ attachment functionality. A detailed explanation of how the plugin works and what can be done by this plugin are described below.
Files that can be uploaded are PDF, TXT, JPG, JPEG, BMP, GIF, PNG, DOC, DOCX, XLS, CSV, PPT, PPTX, ZIP
Not every file can be embedded, the supported files that can be embedded are Adobe Acrobat (PDF), Microsoft Word (DOC), Microsoft PowerPoint (PPT), Microsoft Excel (XLS) You can check the if the file can be embedded from here https://docs.google.com/viewerng/viewer?url=[PDF File URL]License and Agreement
Please read the plugin license