Embed a SharePoint / OneDrive Library in WordPress

Introduction

Embed a SharePoint / OneDrive library in WordPress is easy – Just create a new embed configuration that links to the desired library, then add that configuration to any WordPress post or page.

Embed a SharePoint / OneDrive Library in WordPress - Example of an embedded library.

Leverage the power of SharePoint Online and OneDrive with this app—maximizing the value of your Microsoft 365 investment.

Supported features

Embedding a SharePoint Online / OneDrive library
Embed a SharePoint / OneDrive Library in WordPress - Example of how to create an embed-configuration.

Embedding files from a SharePoint Online or OneDrive library into WordPress is easy – Just create a new embed configuration that links to the desired library, then add that configuration to any WordPress post or page.

Allow “anonymous” users

You can give access to a SharePoint Online library to users that did not sign in with Microsoft and with whom you did not explicitly shared the SharePoint Online library.

Folder navigation
Embed a SharePoint / OneDrive Library in WordPress - Example of a breadcrumb navigation

Users can navigate the SharePoint folder structure in the same way they would do so in SharePoint: By clicking a folder icon to navigate into that folder and by using the breadcrumb navigation at the top to return to the previous level.

Optionally you can define a folder in the library as the starting point for surfacing files in SharePoint Online and OneDrive e.g. /contoso/general/HR.

Search in the library (premium)
Embed a SharePoint / OneDrive Library in WordPress - Example of searching in a SharePoint library from WordPress.

The embedded SharePoint library includes powerful, built-in search functionality that allows users to quickly find the documents they need without leaving your website. Whether used in a customer portal, intranet, or knowledge base, this feature ensures fast and intuitive access to files – even within large libraries – helping to improve productivity.

Upload files from WordPress to SharePoint (premium)
Embed a SharePoint / OneDrive Library in WordPress - Example of how to upload files from WordPress to SharePoint.

You can enable users to upload files directly from WordPress to SharePoint, streamlining content management and collaboration. Whether adding documents to a shared library or updating project files, users can securely transfer content in just a few clicks – without ever leaving your site.

Choosing and customizing your template
Embed a SharePoint / OneDrive Library in WordPress - Customizing your template.

The embed app offers flexible template options, allowing users to choose the presentation style that best fits their site. Whether opting for the familiar Microsoft 365 look and feel, a fully customizable HTML layout styled with CSS, or visually rich Document Cards, you can tailor how files are displayed to match your brand and user experience.

Customize columns

You can edit the columns that the block should display and can connect each of those columns with a (custom) SharePoint list item field. You can configure how the column is rendered and also define custom CSS rules to optimize the user experience.

Use query string configuration

If you need more flexibility, then you can instruct the app to obtain (part of) its configuration from the current URL’s query string. Suppose that you are building a WordPress based extranet and need to surface supplier specific documents from a SharePoint Online folder and that folder’s name corresponds to the supplier’s ID.

Translations

You can supply custom labels in your own language for the strings used in the app e.g. “This folder is empty”.

Test configuration

Before you add your embed-config to a page, you can test it and verify that you have entered a valid configuration.

Plugins with these features

Embedding a SharePoint Online library in WordPress is a feature of the WPO365 | LOGIN plugin that is available for free.

All other features, such as folder navigation, access for “anonymous” users and custom columns are features that you can unlock with the WPO365 | MICROSOFT 365 APPS extension or the WPO365 | INTEGRATE bundle.

Documentation

Videos