AEO / Guide / AEO for WordPress: Complete Setup Guide

Technical

AEO for WordPress: Complete Setup Guide

WordPress is the most widely used content management system on the internet, which means more businesses face AEO implementation questions on WordPress than on any other platform. The good news is that WordPress offers more flexibility for AEO implementation than most other site builders. With the right plugins and a few manual additions, you can implement a full AEO stack without touching raw code.

Plugins that handle schema automatically

The fastest path to AEO schema on WordPress is through a dedicated SEO plugin. Rank Math and Yoast SEO both generate JSON-LD schema automatically for Organization, LocalBusiness, Article, BreadcrumbList, and FAQPage types. Rank Math's schema module is particularly granular: it lets you configure schema type per post type and adds FAQPage schema from any FAQ block you add to the editor. Install one of these plugins and configure the Organization settings first: legal business name, logo, founding date, social profile URLs, and contact information. This creates a sitewide schema foundation.

Adding llms.txt to WordPress

WordPress does not generate an llms.txt file automatically. The simplest method is to create the file manually and upload it to your server's public root directory (the same directory as your wp-config.php file) via FTP or your hosting file manager. The URL should resolve to yourdomain.com/llms.txt. Alternatively, use a WordPress plugin that allows creation of custom files at the root level, or add a rewrite rule in your .htaccess file to serve the llms.txt content from a custom post type. After adding the file, verify it is accessible by visiting the URL in a browser.

Robots.txt configuration in WordPress

WordPress generates a virtual robots.txt file by default, which you can edit through Settings in the WordPress admin panel (Settings, Reading, and then the robots.txt field in some configurations). If your setup does not expose this field, use a plugin like Rank Math or Yoast SEO: both include a robots.txt editor in their settings. Ensure GPTBot, ClaudeBot, PerplexityBot, and Google-Extended are allowed. Do not use caching plugins or security plugins (like Wordfence) rules that might block AI crawlers by user agent string, which overrides your robots.txt settings.

FAQPage schema on WordPress posts and pages

Both Rank Math and Yoast SEO allow you to add FAQ blocks directly in the WordPress block editor. When you use the FAQ block provided by these plugins, they automatically generate FAQPage JSON-LD schema for those questions and answers. Write five to ten questions per key page: your homepage, service pages, and product pages. Use the exact questions your customers ask by phone, email, or chat. These become direct citation material for AI engines. Update your FAQ blocks whenever customer questions change or when you add new services.

Advanced schema for WordPress developers

If you need schema types that plugins do not cover (SoftwareApplication, MedicalBusiness, LegalService), add them manually using the wp_head action hook in your theme's functions.php file or a site-specific plugin. Output the JSON-LD script tag from a PHP function hooked to wp_head. For page-specific schema, use conditional tags (is_page, is_singular) to output schema only on the relevant pages. Validate every schema block at search.google.com/test/rich-results before publishing. After implementation, run an AEO audit at /aeo/scores to confirm the signals are registering.

Ready to improve your AI visibility?

Run a free audit and get your score across 6 AEO categories.

Check your WordPress site's AEO score

AEO guides by industry

Restaurants Get Found When People Ask AI Where to EatLaw Firms Get Cited When Someone Asks AI for a LawyerSaaS How Software Brands Get Cited in AI AnswersGyms and Fitness StudiosHealthcare and Medical PracticesMarketing Agencies

Core AEO concepts

What Is AEO (Answer Engine Optimization)?AEO Explained: Why Your Website Needs to Answer AI QuestionsAEO vs SEO: What's the Difference?Why SEO Alone Is No Longer Enough
Browse all AI visibility scores →