skip to Main Content

Onedrive for Business Display for WordPress – Shortcode

[ o365_onedrive_view]

Parameter Description Sample Required Bound to an attribute or template Attribute or Template Name
folderid OneDrive Folder ID folderid=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” X
template PHP template name to show the data template=”listv3_tpl.php”
id unique id for container id=”o365-search-result”
subfolders Show/Hide subfolders data subfolders=”yes”
sort Sort items by column name sort=”name”
maxresults Number of items fetch from OneDrive maxresults=”5″
columns column names those needs to be fetched using api request columns= “name,size,id,lastModifiedDateTime,createdBy,folder,createdDateTime,@microsoft.graph.downloadUrl”
userbinding show data to guest or logged in users userbinding=”yes”
password Show data after entering the password password=”Test1232″

[ o365_onedrive_file ]

Parameter Description Sample Required Bound to an attribute or template Attribute or Template Name
file OneDrive files ID comma separated file=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxxxxx” X

[ o365_onedrive_folder]

Parameter Description Sample Required Bound to an attribute or template Attribute or Template Name
dir OneDrive folder ID dir=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxx” X



Back To Top