EHRI Portal Shortcode Plugin
Embed item descriptions from the EHRI portal in Wordpress posts via a shortcode (and perhaps more, later...)
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/ehri/ehri-portal-shortcode-plugin/archive/refs/heads/main.zipA simple plugin to interact with the EHRI portal's version 1 API, utilising the ehri-web-components JS library.
Embeds data from the EHRI portal into a blog post page using the [ehri-item-data id="SOME-ITEM"] shortcode.
This will result in the item metadata being rendered like so:
-
Documentary units
[ehri-item-data id="cz-002286-925"]
-
Institutions
[ehri-item-data id="us-005578"]
-
Authorities
[ehri-item-data id="ehri_cb-004280"]
-
Virtual Collections
[ehri-item-data id="wp2-ehri-terezin-research-guide"]
The base URL of the EHRI API endpoint can be changed from the Wordpress settings menu, but defaults to: