WordPress Plugin

The official Inlay plugin handles the whole WordPress integration: it enqueues the embed script on every public page, serves your ads.txt automatically, and gives you per-post ad controls — no theme edits required.

Installation

Install from the plugin directory

In wp-admin go to Plugins → Add New and search for Inlay, then install and activate. You can also download it from wordpress.org/plugins/inlay.

Open the Inlay menu

A top-level Inlay item appears in your wp-admin sidebar with status cards for connection, embed script, and ads.txt.

Connecting your site

Paste your Site Script IDinto the plugin settings — it's the long string after /api/script/ in your embed code, found under Dashboard → Sites → your site. You can paste the entire embed snippet; the plugin extracts the ID for you.

On save, the plugin validates the ID against Inlay and the embed script starts loading asynchronously in the <head> of every public page. Use Verify connection at any time to re-check.

Settings

  • Enable ad serving — master switch; turn off to pause Inlay site-wide without losing configuration.
  • Hide ads for logged-in users — keeps authors and members out of your impression counts. Administrators always receive the script so template previews keep working.
  • Serve ads.txt automatically — answers yourdomain.com/ads.txt with the seller lines Inlay generates for your active demand partners, refreshed every 12 hours. Use Sync & verify to refresh immediately — it runs the same check as the Inlay dashboard verifier.
  • Additional ads.txt lines— appended after Inlay's generated lines, for partners you work with directly.

Per-post control

Every public post type gets an Inlay box in the editor sidebar with a Disable Inlay ads on this content checkbox. When checked, the embed script is not loaded when that content is viewed.

Troubleshooting

ads.txt shows 'Blocked by file'

A physical ads.txt file exists in your site root and your web server serves it before WordPress can. Delete the file to let the plugin keep your seller lines in sync automatically.

WordPress in a subdirectory

The embed script works everywhere, but automatic ads.txt requires WordPress to answer requests at your domain root. On subdirectory installs, host ads.txt at the root manually — the plugin links to your generated content.

Nothing showing yet?

Ads are held back until your first AI-generated template is approved in the Inlay dashboard. Visit a matching page once to trigger generation, then approve it under Sites → your site.