=== Doyjo Shared Page Location Helper ===
Contributors: OpenAI
Tags: location, weather, headlines, helper, taxonomy
Requires at least: 6.0
Tested up to: 6.9
Stable tag: 0.1.4
License: GPLv2 or later

A small standalone helper that publishes a shared page-location object for Doyjo Local Headlines and Time and Weather.

== Description ==

This plugin does not replace either widget plugin. It simply helps pages expose a canonical location earlier and more consistently.

It can:

- auto-detect a location from the queried term name/slug
- auto-detect from the current post title
- use common city/state/zip/lat/lon post meta when present
- infer from URL patterns like /tag/san-diego-ca/ or /local-weather/local-weather-archive/anaheim-ca-weather-2026-03-28/
- publish the result through the shared `doyjo_shared_page_location` contract
- expose `window.doyjoPageLocation` early in the document head
- optionally apply manual URL rules for tricky pages or site-specific structures

== Manual rules ==

One rule per line.

Examples:

/tag/san-diego-ca/ => San Diego, CA
/local-weather/local-weather-archive/anaheim-ca-weather-2026-03-28/ => Anaheim, CA | 33.8366 | -117.9143
regex:^/tag/atlanta-ga/?$ => Atlanta, GA

== Notes ==

- The helper is optional. TAW and Headlines still work without it.
- Manual rules are matched against the request path.
- This plugin does not fix external conflicts such as guest-side JavaScript interference from unrelated plugins.


= 0.1.4 =
* Stops national article title/body text from producing fake city/state page locations.
* Keeps singular articles scoped to curated location tags or explicit metadata, while term/city pages continue to resolve from the page URL or tag.

= 0.1.3 =
* Keeps United States/national contexts from publishing a city-like shared page location.
