Trilobita DocVault
Document library and manager for WordPress: version history, replace files without breaking links, access control and a searchable document table.
Install in
Trilobita DocVault turns WordPress into a document library. Upload a file once and its download link never changes: when you upload a new version, every link on your pages, menus and emails serves the new file automatically. Visitors find documents in a searchable, sortable table, and you keep a version history for every file.
Key Features:
- Version History – Upload a new version and the download link stays the same. Download, restore or delete earlier versions (up to 5 per document), with optional version notes.
- Searchable Document Library – The
[trdv_list]shortcode shows a responsive table with live search, sortable columns and pagination, plus optional category, tag and file type filters. - View in Browser – PDFs get a View button so visitors can read them without downloading.
- Document List Block – Add a searchable list of documents to any page in the block editor, for example every document in a category (such as the papers for one meeting), and choose the sorting, columns and filters in the block settings.
- Document Block – Add a single document to any page or post in the block editor, with Full and Minimal layouts.
- Inline Download Links – Link any text to a document from the block editor toolbar, or with the
[trdv_link]shortcode. - Access Control – Make documents public or available to logged-in users only, as a site-wide default or per document.
- Protected Files – Files are served only through DocVault’s download links, which check access first. Direct access to the upload folder is blocked on Apache, and Site Health warns you if your server (for example Nginx) needs a rule.
- Expiry Dates – Set an optional expiry date and the document is hidden automatically once it passes.
- Download Tracking – See download counts in the admin list, and optionally show them on the frontend.
- Drag & Drop Upload – Drop a file to upload it; the title is filled in from the file name.
- Categories and Tags – Organise documents with their own categories (or share your post categories) and tags.
- Manual Sort Order – Drag documents into your preferred order and use
[trdv_list orderby="menu_order"]to show that order on the frontend. - Site Search – Documents appear in your site’s search results (can be turned off).
- Privacy Tools – Works with the WordPress personal data export and erasure tools.
- File Types – PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, ODT, ODS, ODP, RTF, CSV and TXT.
If DocVault is useful to you, please consider leaving a review. It helps other people find the plugin.
Switching from another download plugin?
If your site uses WordPress Download Manager or Download Monitor, the free Trilobita DocVault Migrator copies your downloads into DocVault, with a dry run first and rollback if you change your mind. Old download links and shortcodes keep working without editing your pages. WordPress Download Manager and Download Monitor are third-party plugins, not affiliated with Trilobita.
Go further with Trilobita DocVault Pro
Trilobita DocVault Pro adds enterprise-grade features for teams that need more control:
- Unlimited Version History – Remove the 5-version limit, with optional per-document limits and automatic pruning of old versions.
- Per-Document Access Control – Restrict individual documents to specific user roles.
- Audit Trail – Full activity log with CSV export for compliance and accountability.
- Email Notifications – Configurable alerts for uploads, updates, and approvals.
- Document Approval Workflow – Require documents to be reviewed before publishing.
- Bulk Upload – Upload multiple documents at once with duplicate detection.
- Download Analytics – Detailed per-version download statistics.
- Duplicate Detection – Find and merge duplicate documents to save storage.
- Storage Management – Advanced tools for monitoring and cleaning up storage.
- Card and Button Layouts – Two extra layouts for the Document block.
- More File Types – Allow images (JPG, PNG, GIF, WebP), ZIP, AI and EPS files.
- Button Colours – Match download buttons to your brand.
Privacy
Trilobita DocVault stores the following user data:
- Uploader user ID – Stored as post meta (
_trdv_uploaded_by) to track who uploaded each document version. - Download logs – Each download is recorded with the downloader’s IP address, browser user agent, user ID (if logged in) and the time, in a custom database table (
trdv_download_log).
This data is handled in compliance with GDPR and CCPA:
- The plugin registers with the WordPress privacy tools for data export and erasure requests.
- Suggested privacy policy text is added to the WordPress Privacy Policy Guide (Settings > Privacy).
- Download logs for registered users can be exported and erased with the WordPress personal data tools. Downloads by visitors who are not logged in are not linked to an email address, so they cannot be matched by these tools.
Usage
Document Block (Gutenberg):
Add a single document with a download button directly in the block editor:
- Click the + button to add a block
- Search for “DocVault Document”
- Under Select Document, type part of the title and choose the document
Block options:
- Layout: Full (with icon and download button) or Minimal (compact inline link)
- Show/hide file icon (full layout only)
- Show/hide file info (type and size; a file type badge in the minimal layout)
- Show/hide view button (PDF and images, full layout only)
- Show/hide description (full layout only)
- Show/hide download count (full layout only)
- Alignment (left, center, right, wide)
Document List Block (Gutenberg):
Add a searchable, sortable table of documents in the block editor:
- Click the + button to add a block
- Search for “DocVault Document List”
- In the block settings, choose the categories and tags to list (none selected lists all documents)
Block settings:
- Documents: categories, tags and file type. Documents in any selected category (including subcategories) that also have any selected tag are listed
- Sorting: sort by date published, title, manual order, file size, file type or downloads; ascending or descending; documents per page (up to 100)
- Display: search box, category, tag and file type filters, view and download buttons, download count, and columns
- Alignment (wide, full)
The block shows the same table as the [trdv_list] shortcode, with the same access control: visitors only see documents they are allowed to access. Categories and tags are saved by ID, so renaming one does not break the block. If every selected category or tag is deleted, the block shows nothing rather than all documents.
[trdv_list] — Document Table Shortcode:
Display a searchable, sortable table of documents on any page or post:
[trdv_list]
Parameters:
category– Filter by document category slug, or several slugs separated by commas (documents in any of them)tag– Filter by document tag slug, or several slugs separated by commas (documents in any of them)include– Show only these documents: document IDs separated by commas (up to 100). Combined with the other filterstype– Filter by file type (pdf, docx, etc.)orderby– Sort by: date (publish date), title, size, type, downloads, menu_order (default: date). Usemenu_orderto display documents in the drag-and-drop order set in the admin list. Whenmenu_orderis selected andorderis not explicitly set, the list defaults to ASC.order– ASC or DESC (default: DESC)show_search– Show search box: true/false (default: true)show_download– Show download button: true/false (default: true)show_view– Show view button for PDFs and images: true/false (default: true)show_category_filter– Show category dropdown filter: true/false (default: false)show_tag_filter– Show tag dropdown filter: true/false (default: false)show_type_filter– Show file type dropdown filter (only types present in the library): true/false (default: false)show_count– Show download count column: true/false (default: false)columns– Columns to display: title, type, size, date (default: title,type,size,date)per_page– Documents per page (default: 20, maximum 100). Use-1for the maximumshow_expired– Include expired documents: true/false (default: false)
Examples:
[trdv_list type="pdf" orderby="title" order="ASC"]
[trdv_list category="reports" show_search="false" columns="title,date"]
[trdv_list orderby="menu_order"]
[trdv_list show_category_filter="true" show_type_filter="true" show_count="true"]
[trdv_list show_tag_filter="true"]
[trdv_list show_download="false" show_view="true"]
Document Link Toolbar Button:
Link any selected text to a document download without leaving the block editor:
- Select the text you want to turn into a download link
- Click the document icon in the formatting toolbar (“Trilobita DocVault Link”)
- Choose a document from the dropdown and click Apply
[trdv_link] — Inline Document Link Shortcode:
Insert a download link within any text:
[trdv_link id="123"]Download the report[/trdv_link]
Parameters:
id(required) – The document IDnew_tab– Open in new tab: true/false (default: false)class– Add custom CSS class
Examples:
[trdv_link id="123"] - Uses document title as link text
[trdv_link id="123"]Click here[/trdv_link] - Custom link text
[trdv_link id="123" new_tab="true"]Download[/trdv_link] - Opens in new tab
Written by Joobi from the project's own listing. See the source page
1.7.0
- New: DocVault Document List block. Add a searchable, sortable list of documents to any page in the block editor, for example every document in a category, and choose categories, tags, file type, sorting, columns and filters in the block settings. Visitors only see the documents they are allowed to access, as with
[trdv_list]. - New: If your site has content from WordPress Download Manager or Download Monitor that has not been migrated, administrators see a dismissible notice about the free DocVault Migrator plugin, which imports it into DocVault.
- Change: The Date column in document lists now shows the document’s publish date, the date the list sorts by. Previously it showed when the current file was uploaded, so uploading a new version changed the date shown without moving the document in the list.
- Change: Documents are not included in WordPress 7.2’s random content links (/random/), which would otherwise start the download of a random document.
- Fix: Deleting an old version, or the version limit removing the oldest one, no longer deletes a file that a later version still uses. This happened after restoring a version: the restored version shares the original’s file.
- Fix: The DocVault blocks in the block editor now use your site’s language when a translation is available.
- Fix: Documents sharing the same date (or other sort value) could appear in a different order on each page load, so moving between pages could repeat some documents and skip others.
- Fix: In document lists, only columns that can be sorted can be clicked. Clicking a column added by an extension, such as DocVault Pro’s Version column, re-sorted the list by date.
- Developer: New
trdv_render_listaction andtrdv_document_list_block_attsfilter, and thetrdv.documentList.inspectorPanelsJavaScript filter for adding settings to the Document List block.
1.6.1
- New:
[trdv_list include="12,34"]shows only the listed documents (document IDs, up to 100), and works with search, sorting and the other filters. - Fix:
[trdv_list per_page="-1"]showed one document per page. A negative value now shows the maximum of 100 per page, as in WordPress. - New: Download Monitor’s
[downloads]shortcode keeps working after migration with DocVault Migrator 1.12.0 or later, includinginclude="..."lists. Filters DocVault cannot reproduce (for exampleexcludeorfeatured="true") show nothing to visitors and a short note to editors, rather than a longer list. - Improvement: Compatibility rules written by DocVault Migrator are checked more strictly: a rule with a setting this version does not understand is skipped instead of partly applied.
1.6.0
- New: Content migrated from WordPress Download Manager keeps working without editing your pages. Its download links and package shortcodes now point to the migrated documents, its listing shortcodes show the migrated categories and tags, and old download, package, category and tag URLs redirect to DocVault. Unsupported WPDM shortcodes show nothing to visitors and a short note to editors. Requires migration with DocVault Migrator 1.11.0 or later, a separate free plugin.
- New: The document list’s
categoryandtagoptions accept several slugs separated by commas. - Security: Documents created without an author (for example with WP-CLI or an import tool) no longer bypass their access setting and expiry date for logged-out visitors.
- Security: Expiry dates now follow your site’s time zone everywhere. Previously downloads used UTC, so on sites ahead of UTC an expired document could still be downloaded for a few hours after its expiry date ended.
- Fix: Permanently deleting a document now also deletes its download history (moving it to the Trash keeps it). Download history left by documents deleted earlier is removed when you update.
- Fix: Document category and tag pages listed no documents when “Include documents in site search” was turned off.
- Improvement: If DocVault uses WordPress categories, category pages now list documents as well as posts. Visitors only see the documents they are allowed to access.
- Fix: A Query Loop showing posts and documents together could hide the posts from visitors when documents are restricted to logged-in users.
1.5.10
- Fix: The document list’s search, filters, sorting and pagination keep working on sites that use page caching. Previously a cached page could carry an expired security token, and these stopped working for logged-out visitors after 12–24 hours.
- Improvement: If a document search fails, a short message now asks the visitor to reload the page, instead of nothing happening.
- Fix: Clicking a column heading in the document list a second time now reverses the sort order, and the sorted column shows its arrow.
- Fix: Sorting the document list by Type now sorts by file type (it sorted by date), and sorting by Size no longer leaves out documents without a recorded size.
- New: The Downloads column in the document list can be sorted, and
[trdv_list]acceptsorderby="type"andorderby="downloads".
1.5.9
- Security: Documents restricted to logged-in users or specific roles, and expired documents, no longer appear in site search results or on document category and tag pages for visitors who cannot access them. Previously their titles and descriptions could be listed there (downloads were always blocked).
- Security: Choosing “Specific roles” without selecting any roles now saves “Logged-in users only” with a warning, since that is how it behaved. Saved role settings are no longer cleared when the settings page is saved without DocVault Pro.
- Security: Several hardening fixes: uploads must belong to a document, the document list is limited to 100 documents per page, downloads are marked private so shared caches never store them, legacy files are checked to be inside the DocVault folders, unknown access settings now deny access, and sort-order changes only affect documents you can edit.
- Fix: The expiry date help text now describes the current behaviour.
- Improvement: The Plugins screen now has a Settings link and Docs, Support and review links for DocVault, and the plugin description matches the WordPress.org listing.
- New: Getting-started guide for new sites. While there are no documents, the Documents screen shows three short steps (upload a document, show documents on a page, choose who can see them), and the Plugins screen shows a short dismissible notice. The guide hides itself once you are set up, or you can hide it at any time. Sites that already have documents are not shown it.
- New: “Create a documents page” button that creates a draft page containing the searchable document list and opens it in the editor for you to review and publish.
- Improvement: The review prompt is no longer shown on sites without any documents, or while the file protection warning or the getting-started guide is showing.
1.5.8
- Security: The Document block no longer shows restricted or expired documents when page content is rendered through admin-ajax.php (for example by a theme’s “load more” feature) for visitors who cannot access them.
- Developer: The Document block’s Layout control and display toggles can now be extended by other plugins through the
trdv.document.layoutOptionsandtrdv.document.layoutControlsJavaScript filters. DocVault Pro 1.5.4 uses these to add its Card and Button layouts to the same Layout control, fixing a duplicate Layout control and missing toggles in the block sidebar when Pro is active. No change for sites without Pro.
1.5.7
- Fix: Download counts are no longer lost when the same document is downloaded several times at once. The total is now updated in a single database operation.
- Fix: Saving a document no longer reports an expiry date change unless the expiry date actually changed. Previously every save of a document without an expiry date was reported as “cleared”, which created misleading entries in the DocVault Pro audit log.
- Fix: The Upload Date column in the admin document list and the Date column in the
[trdv_list]table now show your site’s time zone instead of UTC.
1.5.6
- Security: Direct web access to the DocVault upload folder is now blocked on Apache servers. Previously, a stored file could be downloaded straight from its storage URL, bypassing access restrictions and expiry dates. Existing sites are protected automatically on upgrade. Nginx users should add the server rule described in the FAQ.
- Security: New Site Health check that tests whether stored document files can be downloaded directly. If they can (for example on Nginx without the server rule), Site Health and the DocVault admin screens show a warning with the exact rule to add.
- Improvement: The review prompt can now also appear once you have added 5 or more documents (and have used DocVault for at least 7 days), in addition to the existing 21-day prompt. Whichever comes first is shown; dismissing or snoozing it applies to both.
1.5.5
- Compatibility: Confirmed compatible with WordPress 7.1.
- Fix: Document block editor styles now declared via
style_handlesso they load correctly inside the always-iframed post editor introduced in WordPress 7.1, instead of relying on a WordPress core compatibility fallback.
1.5.4
- Improvement: The Document block’s document picker is now a live search field backed by the REST API, replacing the static dropdown that was silently limited to 100 documents.
1.5.3
- Fix: Download and View buttons in the document list no longer wrap their label across two lines.
1.5.2
- Fix: Admin CSS accent colours now use
var(--wp-admin-theme-color)so buttons, borders, and links match whichever admin colour scheme is active (Fresh, Modern, Ocean, etc.).
1.5.1
- Docs: corrected expiry date FAQ — expired documents are now blocked at download, view, and REST level for non-admin/non-author users (enforced since 1.4.9; FAQ previously described the old behaviour).
- Docs: corrected stale line number in phpcs:disable comment in class-admin-interface.php.
1.5.0
- Compatibility: Confirmed compatible with WordPress 7.0.
- Enhancement: Block API version updated to 3, enabling iframed post editor support in WordPress 7.0 when all blocks in a post are version 3 or higher.
- Enhancement: Public stylesheet now declared via
style_handlesin block registration, ensuring styles load correctly inside the iframed editor. - Fix: Plugin Check warning for interpolated
$placeholdersin sort-order query suppressed with targetedphpcs:disable/enable— the variable contains only%dtokens and is not user-controlled. - Fix: Plugin Check warning for
meta_queryin pre_get_posts access-control filter suppressed — no alternative API covers this use case.
1.4.9
- New: Single document page visits now redirect (302) to the download endpoint. This makes the Query Loop block’s “make title a link” option work correctly.
- New: Documents now appear as a selectable post type in the Core Query Loop block, enabling custom frontend layouts built entirely in the block editor. Public and logged-in access restrictions are enforced at the REST level; role-restricted documents are blocked on individual REST fetches (collection-level role filtering has the same limitation as
[trdv_list]). - Fix: Expiry dates are now enforced at the download, view, and REST level via
can_view_document(). Previously expiry only filtered documents from[trdv_list]output; direct download/view URLs and REST requests could still reach expired documents. - Fix: Expired and access-restricted documents are now hidden from the Query Loop block listing entirely. A pre_get_posts hook applies access control and expiry at query level; a the_posts row-level filter removes role-restricted documents that cannot be excluded in SQL.
1.4.8
- New: Manual sort order — drag the handle column in the admin document list to reorder documents. The first drag establishes positions for all existing documents; subsequent drags update only the visible page. Use
[trdv_list orderby="menu_order"]to display documents on the frontend in their manually-defined order. - New: Tag support — documents can be tagged via a new flat Tags taxonomy shown as an admin column. Use
[trdv_list tag="slug"]to pre-filter by tag and[trdv_list show_tag_filter="true"]for a tag dropdown filter.
1.4.7
- New: “Include documents in site search” setting — when enabled, documents appear alongside posts and pages in WordPress search results. Access restrictions are respected.
- New: View button for PDF and image files — opens the file in a new browser tab without forcing a download. Supported in both the
[trdv_list]shortcode (show_view="false"to hide) and the DocVault Document block. - New: Document description field — set an optional description per document; displayed inline in
[trdv_list]with a toggle button, and directly in the DocVault Document block (full layout). - New: Clear search button — an × button appears inside the search field when text is entered; clicking it resets the field and refreshes the list.
- New: Category filter dropdown —
[trdv_list show_category_filter="true"]adds a category dropdown alongside the search box. - New: File type filter dropdown —
[trdv_list show_type_filter="true"]adds a file type dropdown; only types present in the library are listed. - New: Download count column —
[trdv_list show_count="true"]adds a Downloads column showing total download count per document. Also available as a toggle in the DocVault Document block (full layout). - Fixed: Expiry days-remaining calculation now anchors both dates to UTC before comparison, ensuring correct behaviour on servers where the PHP default timezone differs from UTC.
1.4.6
- Added a description to the Version History metabox explaining that the Restore button makes a previous version the active file served to users.
1.4.5
- Security: all upload entry points now reject files immediately when content-based MIME validation fails — no fallback to browser-supplied MIME type.
- Developer: added
trdv_allowed_file_typesfilter to the upload validation,wp_handle_upload()mimes, download tracker MIME check, and upload UI — allows Pro to extend the accepted file type list without patching free plugin code.
1.4.4
- Fixed: legacy files stored in the old
sdm-documents/directory are now correctly hidden from the media library. - Fixed: media library deletion guard now protects legacy
sdm-documents/files, not just the currenttrdv-documents/directory. - Fixed: storage stats “current vs. old” byte split now uses the explicit current-version pointer rather than assuming the last array entry is current.
- Fixed: legacy attachment-based files can be deleted through DocVault version management again — the deletion guard was incorrectly blocking the operation.
- Fixed: replaced deprecated
current_time('timestamp', true)calls withtime()to eliminate notices on sites with WP_DEBUG enabled.
1.4.3
- New uploads are no longer registered as WordPress media library attachments — DocVault files are now stored privately and managed entirely within DocVault.
- Legacy attachment-based files are hidden from the media library grid and modal to prevent accidental deletion.
- Attempting to delete a DocVault-managed attachment from the media library is now blocked with an explanatory error.
- Version limit warning replaced with a prominent dismissible banner above the upload area — includes the limit message, a Pro upgrade link, and a “Continue anyway” button. Saving is blocked until the warning is acknowledged or the file is removed.
- Security: path containment validation added for all path-based file operations (serve and delete) using realpath() to prevent arbitrary file access or deletion if post meta is tampered.
- Fixed: introduced an explicit current-version pointer (_trdv_current_version_num) so the active file is preserved correctly after a merge operation. Prevents version number collisions and accidental deletion of the current version.
1.4.2
- Added file type filter dropdown to the admin document list — filter by PDF, DOCX, etc. in one click.
- Fixed: expiry date hook now fires when the expiry date is cleared, so Pro audit log and email notifications correctly record the change.
1.4.1
- Added document expiry dates — set an optional expiry date per document; expired documents are hidden from the frontend list automatically. Use
[trdv_list show_expired="true"]to include them. - Fixed: block renderer and [trdv_link] shortcode now check access control before exposing document metadata
- Fixed: frontend query applies access-control filtering at query level for anonymous users
- Fixed: AJAX search reads show_expired from the PHP-rendered data attribute for consistency with initial render; value cannot be set independently via client-side input
- Fixed: per-document roles access type no longer silently discarded by the save handler
- Fixed: _trdv_upload_date now uses current_time() WordPress API
1.4.0
- Added dismissible review notice shown after 21 days on DocVault admin pages
- Replaced version limit confirm dialog with an inline notice linking to DocVault Pro
1.3.9
- Fixed download button text being hidden when the theme link colour matches the button background colour
1.3.8
- Fixed drag-and-drop upload not attaching the file on Publish/Update (title was pre-filled but file was silently discarded)
- Fixed drag-and-drop: cancelling the version-limit confirmation dialog no longer silently queues the dropped file for upload
1.3.7
- Settings page redesigned with card layout matching Pro (File Storage, Categories, Access Control cards)
- Block title corrected to “DocVault Document” in both PHP and JS registrations
- Added support for ODT, ODS, ODP, RTF, CSV, and TXT file types
- readme.txt: usage section reorganised, block and toolbar button documented, Pro section added, FAQ expanded
1.3.6
- Fixed version history upload dates stored in local time instead of UTC
- Fixed ver
Follow this listing's changes (Atom feed)