Shortcodes Reference
Scholar Sync provides two shortcodes. Both are generated for you (with a working id already filled in) on each researcher's or group's preview screen — the reference below is for when you want to place one manually or adjust its attributes.
[scholar-sync-scholar]
Displays a single researcher's profile and publication list.
[scholar-sync-scholar id="42"]
| Attribute | Default | Effect |
|---|---|---|
id | — | The researcher's ID. Required. |
header | shown | Set to "0" to hide the name/affiliation header. |
search | shown | Set to "0" to hide the publication search box. |
cited-by | shown | Set to "0" to hide citation counts. |
co-authors | shown | Set to "0" to hide co-author avatars on each article. |
article-image | shown | Set to "0" to hide each article's image, where one is set. |
image_shape | circle | The researcher photo's shape. |
shadow | shown | Set to "0" to remove the photo's drop shadow. |
Example, hiding the header and citation counts:
[scholar-sync-scholar id="42" header="0" cited-by="0"]
[scholar-sync-group]
Displays a group — either its Research Feed or its Staff Directory grid, depending on how the group itself is configured.
[scholar-sync-group id="12" columns="4"]
id is the only attribute you'll normally need. Every display option (columns, image shape, which fields are shown, and so on) is configured once on the group's own settings screen and used automatically — you only need to add an attribute below if you want to override that setting for this one specific embed.
| Attribute | Effect |
|---|---|
id | The group's ID. Required. |
columns | Number of grid columns (Staff Directory view). |
image_shape | Overrides the group's photo shape. |
shadow | Overrides whether photos have a drop shadow. |
cited-by | Set to "0" to hide citation counts (Research Feed view). |
co-authors | Set to "0" to hide co-author avatars (Research Feed view). |
article-image | Overrides whether article images are shown (Research Feed view). |
search | Set to "0" to hide the search box. |
sort_by | Overrides the default sort order. |
show_position | Overrides whether position/title is shown (Staff Directory view). |
show_institution | Overrides whether institution is shown (Staff Directory view). |
show_tags | Overrides whether research tags are shown (Staff Directory view). |
max_tags | How many tags to show before collapsing into "+N more". |
show_publications | Overrides whether the publication count is shown (Staff Directory view). |
show_profile_link | Overrides whether the "View Profile" link is shown (Staff Directory view). |
per_page | Overrides how many results are shown per page. |