skip to Main Content

Office 365 Persons Display for WordPress – Shortcode

[ o365_persons ]

Parameter Description Sample Required Bound to an attribute or template Attribute or Template Name
userid Office 365 User account id by which need to fetch the data userid=”xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”
template PHP template name to show the data template=”o365_contacts_listings.php”
filter filter the results based on filter query filter=”startswith(givenName, ‘J’)”
folderid folderid by which contacts will be fetched (commaa separeted for multiples) folderid=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx=;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxx=” X o365_contacts_listings.php
type user type type=”contact/user” X
columns columns which needs to be fetch by API columns=”id,displayName,givenName,department,manager,businessPhones,mobilePhone,mail” X o365_contacts_grid.php
maxresults How many results needs to be fetch by api maxresults=”50″
groupid groupid to filter the users (comma separated for multiple) groupid=”02bd9fd6-8f93-4758-87c3-1fb73740a315;06f62f70-9827-4e6e-93ef-8e0f2d9b7b23″ API to get the groups
id unique id for container id=”o365-search-result”

Template customization
Plugin templates can be found here: wp-content/plugins/o365-wp-persons-display/templates/views
A custom template can be uploaded to theme folder also, here is the folder path: wp-content/themes/your-theme/o365-display/wp-persons/views/
Please change the your-theme name with your currently active theme name.

Back To Top