=== Locations for Posts ===
Requires at least: 5.8
Tags: taxonomy, locations, custom taxonomy, post terms, block editor
Tested up to: 7.1
Requires PHP: 7.0
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds a hierarchical "Locations" taxonomy to posts, plus a link on/off setting for the Post Terms block.

== Description ==

* Hierarchical Locations taxonomy for posts (works like Categories).
* Shows in the block editor's Post sidebar, the posts list column and Quick Edit.
* Archives at /location/{term}/ (and /location/{parent}/{child}/), working straight after activation with no need to re-save permalinks.
* REST API endpoint: /wp-json/wp/v2/locations
* Locations Block: Locations is available as its own variation of the Post Terms block, separate from Categories and Tags. Add it to the Single Post template (or any template, query loop or post) to display a post's location(s).
* Post Terms block: adds a "Link to term archive" toggle (Block settings > Links). On by default, so existing blocks keep their links. Works for any taxonomy shown by the block (Categories, Tags, Locations, etc.). When off, each term is output as `<span class="lfp-term">`. When on, an "Open in new tab" toggle is also available.

Internally the taxonomy is named `lfp_location` to avoid clashes with other plugins or themes.

== Installation ==

1. Upload the `locations-for-posts` folder to `/wp-content/plugins/`, or upload the zip via Plugins > Add New > Upload Plugin.
2. Activate the plugin.

If the Locations panel doesn't appear in the block editor, open the editor's Options menu > Preferences > General > Document settings and switch on "Locations".

== Changelog ==

= 1.1.0 =
* Added "Link to term archive" and "Open in new tab" settings to the core Post Terms block.

= 1.0.0 =
* Initial release.
