How to Display a Dynamic Document Library Anywhere on Your LearnDash LMS Site - Wooninjas - The WooCommerce Ninjas
Back to Blogs
LearnDash Tutorials
WordPress

How to Display a Dynamic Document Library Anywhere on Your LearnDash LMS Site

Keep course files organized and easier to find. Set up libraries, choose access permissions, and display resources where LearnDash learners need them.

Zil Kifel Sarwar July 24, 2025 11 mins read
Ninja mascot pointing at a WordPress dashboard showing a LearnDash document library with PDF, Word, Excel, and folder files ready to download.

Are you running an online course with LearnDash? 

Keeping course materials organized and accessible helps learners find the resources they need. WP Document Library add-on  allows you to organize documents into libraries with advanced search and filtering options and display resources on WordPress pages. 

In this guide, I’ll show you how to display a dynamic document library anywhere on your LearnDash LMS site using shortcodes, WordPress blocks, and the available course and group settings.

Quick Answer

WP Document Library helps you organize, search, filter, and display documents across your WordPress site. Use shortcodes or WordPress blocks to add document lists and libraries to pages, and configure selected libraries, categories, and user-role permissions for LearnDash courses and groups. This keeps course resources organized and easier for learners to access.   

What is a Dynamic Library?

A Dynamic Document Library is a system for organizing, managing, and displaying documents in one place. It can include features such as search, filtering, sorting, and different display layouts to help users find files quickly.

On a WordPress site that uses LearnDash, WP Document Library lets teachers organize course materials into libraries and show certain documents on WordPress pages, LearnDash courses, and groups.   

Why Use a Dynamic Document Library?

A dynamic document library makes it easier to manage learning materials and control how learners access them. Instead of adding files manually to multiple pages, you can manage documents centrally and display them wherever needed.  

Here’s why you should use a Dynamic Document Library:

  • Document Management: Upload, organize, edit, and manage documents from one dashboard.
  • Access Control: Restrict document access using passwords and user-role permissions.
  • Stripe Payments: Sell individual documents or complete libraries through one-time payments or recurring subscriptions.
  • Order Management: Manage customer orders and payment records from the WordPress dashboard.
  • Supported File Types: Add PDFs, Word documents, spreadsheets, presentations, images, videos, and other supported file formats.
  • Document Actions & Tracking: Pin important documents, let users save favorites, preview supported files, and track downloads.
  • User Dashboard & Downloads: Give users a central place to access their documents, libraries, purchases, and downloads.
  • Stripe Webhooks: Receive payment and subscription updates through Stripe webhook integration.
  • Flexible File Sources: Upload files from your device, select existing files from the WordPress Media Library, or add external file URLs.
  • Frontend Library Management: Allow authorized users to create, edit, delete, and manage document libraries directly from the frontend.

Key Features of the WordPress Document Library Add-On

Create Unlimited Document Libraries

With the WordPress Document Library add-on, you can create multiple document libraries and organize them using parent-child relationships. You can also display selected document libraries or categories on LearnDash course and group pages. This means configuring the library/category selection and user-role restrictions to control which resources learners can access. You can even reuse a library in more than one course.   

Image 21

Categorize Materials

The WordPress Document Library add-on lets you organize course materials using custom categories and tags, making it easy to group files by topic, module, or type. This improves navigation for learners and helps instructors manage content more efficiently, especially in complex courses.

Image 22

Easy Upload and Management

The WordPress Document Library add-on provides a simple and user-friendly interface for uploading and managing files. You can quickly add PDFs, Word documents, presentations, spreadsheets, ZIP files, and videos by dragging and dropping or browsing from your device.

Image 34

Focus on your business – We’ll handle your website’s speed, security, uptime, and updates.

Filter and Search Options

The WordPress Document Library add-on improves the learner experience with built-in filters and search tools that make it easy to find specific resources. Learners can narrow results using categories or tags and quickly locate files by typing keywords or document names, ensuring fast and focused access to course materials.

Image 31

Front-End Display

The WordPress Document Library add-on gives you four shortcodes to show documents, libraries, management tools, and user accounts on the front end. Drop them into any WordPress page, course, or lesson. Learners get their resources right where they’re working, with no extra navigation and no leaving the course.   

Image 36

Choose What Shows in Your Document List   

The WordPress Document Library add-on lets you choose which columns show in your document list. You can show or hide Image, Reference, Title, Published, Last Modified, Author, Favorites, Downloads, and Download. Keep only the ones your users need, and the list stays clean and easy to read.   

Image 38

Connect Stripe and Set Up Payments   

The Payment Gateway tab connects the add-on to Stripe so you can sell access to your document libraries. Pick your currency, add your Stripe publishable and secret keys, and choose Test or Live mode. Then set the checkout, thank you, library download, and user dashboard pages. Add the webhook URL to your Stripe account and paste the signing secret back in, so orders update on their own. Click Update Settings to save.   

Setup Instructions    

To display a dynamic document library anywhere on your LearnDash LMS site, first organize your documents into libraries, then choose where learners should access them. You can display documents on a standalone WordPress page or configure selected libraries and categories to appear on LearnDash course and group pages.    

Step 1: Install the Add-On:

Purchase the license of the WordPress Document Library add-on from the Wooninjas website, download the plugin, and get the license key. After downloading the plugin, you’ll find a new “WP Documents” plugin in your WordPress sidebar. 

   

To Activate the plugin add-on   

Go to WP Documents > Settings > License > Enter your License Key > then Activate   

and enter your key to activate updates and support.   

Image 27

Step 2: Add Tags & Categories

Under the Tags submenu, create tags

Image 35

Step 3: Create a Document Library

Go to Document Library > Add New to create a new library. You can:

  • Name your library
Image 19
  • Add a description & upload a file
Image 37

Step 4: Insert Documents

Navigate to Add New Documents: fill in the title, description, image, tags, library, and upload (or link) the file.

  • Add title:
Image 25
  • Select Libraries:
Image 28
  • Add tags:
Image 20
  • Upload document or URL:
Image 24

Build, Customize, and Scale Your LearnDash Store with WooNinjas

Step 5: Assign to Courses or Groups

  • Under course/group settings, enable document libraries and select relevant libraries.
  • Optionally limit visibility to specific user roles.
Image 30

Step 6: Get the Shortcodes Ready

WP Document Library provides shortcodes for displaying documents, browsing libraries, and managing library content. Choose the shortcode that matches the display you need.

1. Display all documents

[wpdl_document_shortcode]

This displays a table of documents on the page where you place the shortcode.   

2. Filter documents by document tag

[wpdl_document_shortcode tag="assignments"]

Use a supported document tag ID or slug to limit the results.

3. Display documents from a specific library

[wpdl_document_shortcode library="course-materials"]

Looking for a Ready-Made Solution?

Explore our WordPress, WooCommerce, and LMS plugins built to extend functionality without custom development.

Browse Our Products

Replace course-materials with the slug or ID of the relevant library.

4. Set a default search term

[wpdl_document_shortcode search="assignments"]

This presets the search field with a keyword.

5. Customize the search placeholder

[wpdl_document_shortcode placeholder="Find a file..."]

This changes the text displayed in the search field.

6. Display document libraries

[wpdl_libraries]

Use this shortcode to display libraries or categories. Supported options include layout, search, excluded libraries or categories, and the number of records shown per page.

For example, to display libraries in a grid layout with search enabled:

[wpdl_libraries layout="grid" search="true" limit="10"]

7. Enable frontend library management

[wpdl_libraries_upload]

This allows authorized users to create, edit, delete, and search libraries from a frontend page. Enable the relevant frontend library management setting first.

8. Display payment and download pages

If you sell documents or libraries through Stripe, the plugin also provides these shortcodes:

  • Checkout: [wpdl_checkout]
  • Thank-you page: [wpdl_thankyou]
  • Purchased library downloads: [wpdl_library_downloads]
  • User dashboard: [wpdl_user_dashboard]

Configure the corresponding pages in the Payment Gateway settings.   

Prefer WordPress Blocks Instead of Shortcodes?   

You can also use the WordPress block editor to display your documents and libraries. Search for the WP Document block to display documents or the WP Document Libraries block to display document libraries. Add the relevant block to your page and configure its available display settings.   

For additional shortcode options, consult the official WP Document Library documentation.   

Step 7: Add the Shortcode Anywhere on Your Site

Display a dynamic document library anywhere on your WordPress site with a shortcode or a WordPress block. Select the method that best suits your page layout and the type of content you want to display.      

A. Inside a Course or Lesson Page

  • Go to LearnDash LMS > Courses
  • Edit the course where you want the document table. Paste your shortcode directly into the content.
Image 26
  • Save the course
Image 29

B. On a Custom Page

  • Go to Pages > Add New
  • Give your page a title
Image 33
  • Paste your shortcode into the content editor.
Image 23
  • Save the page.
Image 32

Key Takeaways   

  • Create document libraries and assign documents, categories, and library tags to keep your files organized.
  • Enable document libraries in LearnDash course or group settings and select the libraries or categories learners should access.
  • Check your access settings before publishing. If no libraries or categories are selected, all document records may be displayed. If no user roles are selected, users of all roles can access the selected resources.
  • Use [wpdl_document_shortcode] to display documents in a table and [wpdl_libraries] to display document libraries or categories. You can also use the available WordPress blocks.
  • Choose a list, grid, or folder layout. Configure searchable fields and available filters to help learners find the documents they need.
  • Before upgrading from the older LearnDash Document Library, test the migration on a staging site. Review the updated structure and make sure documents are associated with the correct libraries, categories, and library tags.   

Conclusion   

WP Document Library helps you organize documents, create searchable libraries, and display course resources across your WordPress site. Knowing how to display a dynamic document library anywhere on your LearnDash LMS site makes it easier to keep learning materials accessible and manage documents from one place.

Ready to organize your course materials? Download the WP Document Library add-on now and start building searchable document libraries for your learners.

Need help customizing your LMS? WooNinjas offers LearnDash customization services, LearnDash migration services, and LearnDash Quick Launch to help you configure, improve, or launch your learning website.

Contact WooNinjas to discuss your project requirements and get support with your LearnDash website.   

FAQs   

How do I display a dynamic document library anywhere on my LearnDash site?

Install and activate WP Document Library, create your document libraries, and add the appropriate shortcode or WordPress block to a page. To display resources directly in a LearnDash course or group, enable Enable Document Libraries in the relevant settings and select the libraries or categories you want to show.

Which shortcodes does WP Document Library support?

The plugin provides two main shortcodes for displaying documents and libraries:

[wpdl_document_shortcode] displays documents in a table.

[wpdl_libraries] displays document libraries or categories.

You can configure supported attributes to control the displayed content, layout, search options, and other settings.

Can I restrict access to documents in a LearnDash course?

Yes. WP Document Library supports password protection and user-role restrictions for document libraries. Its LearnDash integration also lets you select which libraries or categories appear in courses and groups and specify which user roles can access them.

Can learners search and filter documents in the library?

Yes. WP Document Library supports document search and filtering options. Depending on the selected display and configuration, learners can search for documents and browse resources using libraries, tags, and other available filters.

Can I use WP Document Library without LearnDash?

Yes. WP Document Library works on WordPress websites without requiring LearnDash. You can create and display document libraries on WordPress pages using shortcodes or blocks. LearnDash must be active when you want to use the plugin’s course and group integration.

Need Ongoing WordPress Maintenance & Support?

We handle updates, performance monitoring, security hardening, and technical fixes so your WordPress and WooCommerce site stays stable and secure.

View Maintenance Plans

Scroll to Top