Adding llms.txt and schema to a WordPress site for AI search
Two technical pieces help AI tools understand a WordPress site quickly: structured data (schema) that says who you are and what each page is, and an llms.txt file that summarises the site in plain text. Both take less than an hour on WordPress. Here is how to add them.
- Use your SEO plugin for the base schema, then complete the Organization or Person details.
- Add
sameAslinks so AI can connect your site with your LinkedIn and other profiles. llms.txtis a Markdown file at the root of your site that lists who you are and your key pages.- Test schema with Google’s Rich Results Test and the Schema.org validator.
Part 1: Schema on WordPress
Start with your SEO plugin
Yoast SEO and Rank Math both output a schema “graph” on every page: WebSite, WebPage, Breadcrumb, and Article on posts. Open the plugin’s settings and fill in:
- Whether the site represents an Organization or a Person.
- The name, logo or photo, and a short description.
- Social profiles (these become
sameAslinks).
Make the author real
For Article schema, the author is taken from the WordPress user. Set the user’s display name to the real name (not a username like “admin”), add a short bio and the profile links. AI tools and Google use the author to judge who is behind the content.
Add what the plugin doesn’t
If you need extra properties, such as knowsAbout (your skills) or the area you serve, you can add a small JSON-LD block. Example for a freelancer:
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Your Name",
"jobTitle": "WordPress Developer",
"url": "https://example.com/",
"sameAs": ["https://www.linkedin.com/in/your-profile/"],
"knowsAbout": ["WordPress", "WooCommerce", "Google Tag Manager"],
"address": {"@type": "PostalAddress", "addressLocality": "Cairo", "addressCountry": "EG"}
}
Keep it consistent with what the SEO plugin already outputs, so you don’t describe the same person or business twice in different ways.
FAQ markup
If a page has a real FAQ section, mark it up with FAQPage schema. Google shows FAQ rich results only for a few types of sites now, but the clear question-and-answer structure still helps other search and AI tools.
Part 2: llms.txt
llms.txt is a proposed standard: a plain Markdown file at https://yoursite.com/llms.txt that tells language models what the site is and where the important content is. Not every AI tool reads it yet, but it is cheap to add and easy to keep up to date.
What to put in it
# Your Name or Business
> One or two sentences: who you are, what you do, where you work.
## Key pages
- [About](https://example.com/about/): background and experience
- [Services](https://example.com/services/): what you offer
- [Case studies](https://example.com/insights/): real projects with numbers
## Contact
- Email: hello@example.com
How to add it on WordPress
- Upload the file to the site root with your host’s file manager or SFTP, or
- use an SEO plugin that supports llms.txt (some now generate it), or
- serve it with a small code snippet if you can’t access the root folder.
After adding it, open the URL in a browser to check it loads as plain text, and that Cloudflare or a security plugin doesn’t block it.
Test everything
- Google Rich Results Test for a post and a product page.
- Schema.org validator to see the whole graph.
- View the page source to check there is only one Organization or Person entity.
FAQ
Do AI tools actually read llms.txt?
Support is still growing and differs by tool. Treat it as a low-cost extra; schema, clear content and consistent profiles matter more.
Can wrong schema hurt my site?
Schema that doesn’t match the visible page, such as fake reviews, can lead to a manual action from Google. Only mark up what is really on the page.
Do I need a developer for this?
The SEO plugin settings and an llms.txt file are manageable for most site owners. Custom JSON-LD and checking for duplicate entities are easier with a developer.