WordPress plugin for Orbis that adds persons, with personal details such as birth date and gender, built on top of Orbis Contacts.
- PHP 8.3+
- WordPress 7.1+
- Orbis Contacts
- Composer
- Node.js / npm
composer install
npm installThis plugin follows the SolveBeam WordPress Plugin Boilerplate conventions.
npx wp-env start
npx wp-env stopThe .wp-env.json maps the plugin twice into the WordPress environment:
| Mount path | Source | Purpose |
|---|---|---|
wp-content/plugins/orbis-persons-dev |
./ |
Live development (including dev files) |
wp-content/plugins/orbis-persons |
./build/orbis-persons/ |
Built distribution version |
composer run buildvendor/bin/dep deploycomposer run make-potcomposer run phpcs
composer run phpstan
composer run rector
composer run qa| Type | Key |
|---|---|
| Post type | orbis_person (supports orbis_contact) |
| Taxonomies | orbis_gender |
| Post meta | _orbis_title, _orbis_organization, _orbis_department, _orbis_email, _orbis_phone_number, _orbis_mobile_number, _orbis_address, _orbis_postcode, _orbis_city, _orbis_country, _orbis_birth_date_string, _orbis_birth_date, _orbis_birth_date_timestamp, _orbis_iban, _orbis_twitter, _orbis_facebook, _orbis_linkedin |
The orbis_person post type used to be registered by Orbis core and is now registered by this plugin (with the persons slug, orbis_contact support and the Orbis Contacts menu). The post type, taxonomy and meta keys are the same, so existing persons keep working without migration.
The plugin ships a single and an archive person template, modelled after single-orbis_person.php and archive-orbis_person.php of the Orbis 5 theme. They are used unless the theme has its own single-orbis_person.php or archive-orbis_person.php.
| Template | Shown on | Content |
|---|---|---|
templates/archive-orbis_person.php |
Persons archive | Table with photo, name, e-mail, phone number, organization, address and author |
templates/single-orbis_person.php |
Single person | Layout with photo, description, details, comments and additional information |
templates/person-details.php |
Single person | Organization, phone numbers, e-mail, gender, address, IBAN, birth date, age, vCard and social media |
Other plugins can add content to the single template with the orbis_before_main_content, orbis_after_main_content, orbis_before_side_content and orbis_after_side_content actions, for example the connected organizations of Orbis Organizations.
GPL-2.0-or-later