=== Kinship Family Tree ===
Contributors: popandthistle
Tags: family tree, genealogy, ancestry, block, family history
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Build your own family tree with an interactive WordPress block.

== Description ==

Kinship lets you enter your own family history and display it in a post or page.
Edit directly inside the Family Tree block or use the Family Trees dashboard.
The same saved tree can appear in multiple posts with different starting people,
views, and colors. Saving a tree updates every block that references it.

Features:
* Add people, parents, partners/spouses, siblings, and children from a card.
* Link existing people without creating duplicate records.
* Multiple partners and biological, adoptive, step, foster, or unknown parent links.
* Marriage/partnership status, date, and place.
* Portraits from your WordPress Media Library, names, optional gender, life dates,
  places, biographies, notes, and sources.
* Partial dates such as a year or "about 1890".
* Ancestor, descendant, and close-family charts with clickable details.
* Search, focus on another person, drag to pan, and zoom to fit.
* Three color palettes and block width/height settings.
* Up to 1,000 people per tree; a chart shows up to 180 cards at a time.
* GEDCOM import and full Kinship JSON backup/export/restore.
* Undo/redo for up to 30 unsaved tree changes.
* Living relatives' details hidden by default; per-person privacy controls.
* No external services, subscriptions, tracking, or build tools required.

This is an independent family tree editor. It does not connect to Ancestry,
search historical records, provide hints, analyze DNA, or sync with genealogy
accounts. You can manually enter family history or import an exported GEDCOM.

== Installation ==

1. In WordPress, open Plugins > Add New Plugin > Upload Plugin.
2. Choose kinship-family-tree-1.0.1.zip and click Install Now, then Activate.
3. Open Family Trees in the WordPress dashboard and create a tree, or insert
   the Family Tree block in a post and choose Create new tree.
4. Add your first person. Use the + on a card to add a parent, partner,
   child, or sibling. To add a child with two recorded parents, choose the
   other parent in the form. Partner links alone do not imply parentage.
5. Open Publishing & privacy, enable Allow this tree to appear in posts,
   and click Save tree when you are ready to share it.
6. Add a Family Tree block to a post/page, choose the tree, and publish/update
   the post. Use the block sidebar to set the starting person, view,
   generations, height, colors, portraits, and partner display.

== Frequently Asked Questions ==

= How do I update from version 1.0.0? =

Export a backup of your tree, then upload the 1.0.1 ZIP under Plugins > Add New
Plugin > Upload Plugin. Choose Replace current with uploaded when WordPress
asks. Your saved trees and Family Tree blocks continue to work; no rebuilding
or re-import is required.

= Can the interface be translated? =

Yes. The PHP and JavaScript interface strings use the kinship-family-tree text
domain and WordPress translation APIs. The languages/kinship-family-tree.pot
file is a translation template, not a completed translation. Language packs
can be supplied through WordPress.org or as local MO and script JSON files.
PHP MO files use WordPress's standard wp-content/languages/plugins directory;
script JSON files can also be supplied in this plugin's languages directory.
Names, biographies, and other family information you enter are never translated
automatically.


= How do I save my changes? =

In the editor, click Save person or Add person to apply a person's details to
the working tree, then click Save tree. Tree changes save separately from a
WordPress post. The Unsaved changes indicator shows when more saving is needed.
Export backup includes the current working tree, even before saving.

= Why is my tree missing from the published post? =

Check that it contains people and that Allow this tree to appear in posts is
on under Publishing & privacy. Save the tree, then update the containing post.
If your site uses caching, clear the page cache after changing a tree.

= Why do I see Private relative? =

Hide living relatives' personal details is on by default. It removes their
names, portraits, life facts, notes, and sources from website output and page
source. Partnerships involving a hidden person also have dates/places removed.
The person's position and family links remain visible. The private-person
switch always hides details, even if living-person protection is turned off.
The authenticated editor shows complete information; public preview shows
redacted information. New people default to Living. Mark deceased relatives
as not living so their details can appear.

Media Library files themselves normally have public URLs. Hiding a person is
not a way to make uploaded photos or document files confidential. Cached pages
can retain older information until you clear caches.

= Is the full tree publicly downloadable? =

The editing API requires a signed-in account with permission to edit that tree.
The post only contains the public, redacted data for the shared tree. Visitors
can inspect all of that public tree data even when fewer generations are
currently shown. Generation, starting-person, and view controls are display
settings, not access controls. Use a separate tree to share only one branch.

= Who can edit trees? =

Users who can edit posts can create and edit their own trees. Editors and
administrators can edit other authors' trees according to normal WordPress
post permissions. Visitors cannot modify trees. Photos additionally require
permission to upload media. A tree's sharing switch allows its redacted data
to appear in any Family Tree block that references its ID.

= Can I bring in an existing Ancestry tree? =

Export your tree as a GEDCOM file from that service, then use Import tree.
Core GEDCOM individual and family records are supported: names, birth/death
dates and places, gender, direct person notes and source citations, marriages,
divorce status, spouse links, and parent/child links. FAMC/PEDI adoption and
foster indicators are supported. External photos/documents, DNA, service IDs,
event-specific citations, and many custom facts are not imported. GEDCOM is a
basic text import, not a lossless copy of every feature of another service.
UTF-8 text is expected. GEDCOM 5.5.1 and common GEDCOM 7 core tags are handled.
Files are limited to 3 MB and 1,000 people. Split larger trees into branches.
No death record means Living by default, so check historical people afterward.
Import replaces the current working tree and turns website sharing off.
Undo can reverse an import before saving. Kinship JSON is the full backup format.

= Do backups include photos? =

JSON backups include portrait attachment IDs and URLs, not the image files.
For a new website, transfer your WordPress media separately and reselect
portraits. Backups include living/private details: keep them somewhere private.
The backup does not include the WordPress post or block display settings.

= Can I represent half siblings, remarriages, or unknown parents? =

Yes. Parent links are independent of partner links. Share just one parent for
half siblings; add separate partner records for multiple partnerships. Leave
an unknown parent unrecorded or add a person named Unknown. The sibling action
copies all the selected person's parent links; unlink the extra parent for
a half sibling. A person can have more than two recorded parents.

= How are the views different? =

Ancestors follows parents upward from a starting person. Descendants follows
children downward. Partners can appear beside visible people without their
other branches. Close family includes parents, siblings, partners, children,
and recorded co-parents. Disconnected relatives can be found with search.
Each person is drawn once; shared ancestry and relationships spanning different
generations may create crossing lines. Solid lines are biological parent links;
dotted lines are other parent types; dashed lines connect partners. A chart is
limited to 180 cards for readability. Focus on a person to explore another branch.

= What happens when I deactivate or delete the plugin? =

Tree records are retained. Blocks stop rendering while the plugin is inactive
and work again after reactivation. Deleting a tree in its dashboard removes it
from all posts using it. Export a backup before deleting a tree. There is no
automatic data deletion on plugin uninstall.

== Changelog ==

= 1.0.1 =
* Add tested WordPress version metadata.
* Use a distinctive prefix for public functions, constants, script handles, and JavaScript globals.
* Make the editor, chart, validation messages, and accessible labels translatable.
* Add a translation template and load WordPress JavaScript language packs.
* Keep existing saved trees, backups, and Family Tree blocks compatible.

= 1.0.0 =
* Initial release.
