All shortcodes of RootsPersona in one place. A shortcode goes into a page or post as text; in the block editor use the Shortcode block, in Elementor the Shortcode widget. Attribute values go in double quotes.
Most shortcodes take the number of the tree: batchId or batch (see Batch Id). With one tree on the site you can leave it out.
Persona page
[rootsPersona personId="I1" batchId="1" /]
| Attribute | What it does |
|---|---|
personId | the person’s number in the GEDCOM file, for example I1 (required) |
batchId | the tree, 1 by default |
template | classic, archive or chronicle — another layout for this page only |
part | print one part: intro, family, photos, map, sources, or rest (everything except the intro); Archive card and Chronicle only |
picFile1, picFile2… / picCap1… | photos of the page and their captions; written by Upload photos and the edit form |
Pages of people are created by Add Uploaded Persons, which writes this shortcode for you. More in The persona page.
Front page of the tree
| Shortcode | Shows | Attributes |
|---|---|---|
[rootspersona_hub] | the whole front page of the tree | title, batch |
[rootspersona_faces] | portraits of the older generations | count (24), batch |
[rootspersona_today] | remembrance days | days (5), batch |
[rootspersona_start] | ways into the tree | batch |
[rootspersona_timeline] | births per decade | batch |
[rootspersona_surnames] | families by surname | count (all), batch |
[rootspersona_places] | places and the map | count (12), batch |
The numbers in brackets are the defaults. More in For visitors.
Search
| Shortcode | Attributes |
|---|---|
[rootspersona_search] — the search box | results — address of the results page (found by itself if left out); placeholder — the text in the empty box |
[rootspersona_search_results] — the results page | box — auto (a search box only if the page has none yet), yes or no |
Index and sources
| Shortcode | Shows | Attributes |
|---|---|---|
[rootsPersonaIndexPage /] | all people of the tree, alphabetically, page by page | batchId; surname — only people with this surname |
[rootsEvidencePage /] | the sources of the tree | batchId; sourceId, for example S1 — one source and the people it is cited for |
Chart of the whole tree
[rootspersona_chart]
Attributes: batch (1), height — for example 80vh (the default) or 600px; width — wide (the width of the screen, the default) or column (the text column). The chart is uploaded on Tools → RootsPersona → Tree chart, see For visitors.
Classic panels
For the Classic layout, single panels of a persona page can still be printed with the older shortcodes. Each takes personId and batchId:
| Shortcode | Panel |
|---|---|
[rootsPersonaHeader] | header with the picture |
[rootsPersonaBio] | biography |
[rootsPersonaFacts] | facts |
[rootsPersonaAncestors] | ancestors |
[rootsPersonaFamilyC] | the family where the person is a child |
[rootsPersonaFamilyS] | the families where the person is a spouse |
[rootsPersonaDescendancy] | descendants |
[rootsPersonaPictures] | photos |
[rootsPersonaEvidence] | sources |