# WordPress setup guide

## Create an Application Password
1. Log into WordPress admin
2. Go to **Users → Profile** (or **Users → All Users** and open your user)
3. Find **Application Passwords**
4. Add a new application password with a label like “MY.TOWN Blogger”
5. Copy the generated password (you will not see it again)

## Required permissions
The user must be able to create and publish posts (capability: `publish_posts`).

## Paste into your Blogger `.env`
- `WP_URL` should be the public base URL of your site (no trailing slash recommended)
- `WP_USER` is your username
- `WP_APP_PASSWORD` is the application password string

## If test post fails
- Security plugins can block `/wp-json/` endpoints
- Some hosts block Basic Auth unless explicitly allowed
- Ensure your site is reachable from the public internet
