WP Manifestindependent plugin directory
manifest / integrations / ehri-portal-shortcode-plugin

EHRI Portal Shortcode Plugin

Embed item descriptions from the EHRI portal in Wordpress posts via a shortcode (and perhaps more, later...)

★ 0stars

Install

Download source zip No release zip yet

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.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A 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:

  1. Documentary units [ehri-item-data id="cz-002286-925"]

    Documentary Unit

  2. Institutions [ehri-item-data id="us-005578"]

    Institution

  3. Authorities [ehri-item-data id="ehri_cb-004280"]

    Authority

  4. Virtual Collections [ehri-item-data id="wp2-ehri-terezin-research-guide"]

    Virtual Collection

The base URL of the EHRI API endpoint can be changed from the Wordpress settings menu, but defaults to:

https://portal.ehri-project.eu