Why this matters
WordPress works well with Legible's hosted setup as long as your discovery tags are rendered in the document head rather than only after JavaScript loads.
Global Tags
Add the site-wide Legible tags in your theme header or a trusted head injection plugin so every page exposes the hosted `llms.txt` and `ai-sitemap.json` references.
Per-Page Markdown Tag
- Use the post slug, not the page title.
- Repeat the pattern for custom post types if they should be AI-readable.
<link rel="alternate" type="text/markdown" href="https://read.yourdomain.com/<?php echo esc_attr( get_post_field( 'post_name', get_the_ID() ) ); ?>.md" />Verification
- Inspect raw page source instead of DevTools alone.
- Check that optimization plugins are not stripping your custom head tags.
- Confirm the hosted Markdown URL matches the synced content slug in Legible.
