Shortcodes

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" /]
AttributeWhat it does
personIdthe person’s number in the GEDCOM file, for example I1 (required)
batchIdthe tree, 1 by default
templateclassic, archive or chronicle — another layout for this page only
partprint 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

ShortcodeShowsAttributes
[rootspersona_hub]the whole front page of the treetitle, batch
[rootspersona_faces]portraits of the older generationscount (24), batch
[rootspersona_today]remembrance daysdays (5), batch
[rootspersona_start]ways into the treebatch
[rootspersona_timeline]births per decadebatch
[rootspersona_surnames]families by surnamecount (all), batch
[rootspersona_places]places and the mapcount (12), batch

The numbers in brackets are the defaults. More in For visitors.

ShortcodeAttributes
[rootspersona_search] — the search boxresults — address of the results page (found by itself if left out); placeholder — the text in the empty box
[rootspersona_search_results] — the results pagebox — auto (a search box only if the page has none yet), yes or no

Index and sources

ShortcodeShowsAttributes
[rootsPersonaIndexPage /]all people of the tree, alphabetically, page by pagebatchId; surname — only people with this surname
[rootsEvidencePage /]the sources of the treebatchId; 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:

ShortcodePanel
[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