Before you connect, your WordPress site needs four things: it must be self-hosted WordPress served over HTTPS, its REST API must be reachable, application passwords must be switched on, and you need a WordPress login that can edit both pages and posts. Most standard WordPress sites already meet all four. This guide shows how to check each one and what to change if a check fails.
When you select Continue on the WordPress card, ValiantAI checks that the address is self-hosted WordPress, that the REST API answers and that application passwords are on, and tells you which check failed. A site without HTTPS usually fails the application passwords check, because WordPress switches the feature off on such sites. The login is checked after you approve Valiant in your WordPress admin.
1. A self-hosted WordPress site on HTTPS
ValiantAI connects to WordPress sites you or your host run yourselves (often called WordPress.org sites), including WooCommerce stores. It cannot connect to sites hosted by WordPress.com, including addresses ending in .wordpress.com. If yours is a WordPress.com site, see Can I connect a WordPress.com, Wix or Squarespace site?
Your site must load over HTTPS (the address starts with https:// and the browser shows a padlock). ValiantAI only sends its WordPress login over HTTPS, and WordPress only switches application passwords on by default for HTTPS sites. If your site is not on HTTPS, ask your web host to install an SSL certificate first.
How to check: open your site in a browser and look at the address bar.
2. The REST API is reachable
ValiantAI reads and updates your pages through WordPress's REST API, the standard interface WordPress provides for apps. ValiantAI looks for it at yoursite.com/wp-json/ and, if that address is blocked, at yoursite.com/?rest_route=/.
How to check: open https://yoursite.com/wp-json/ in a browser. You should see a page of text data that includes your site's name. If you see an error, a login page or a "forbidden" message, something is blocking the REST API.
How to fix it: the usual cause is a security plugin or a firewall at your host that disables or restricts the REST API. Allow the REST API (at least the standard pages and posts routes) in that plugin's or host's settings. If ValiantAI cannot find the REST API, it shows "That address doesn't look like a WordPress site. Check it and try again."
3. Application passwords are switched on
An application password is a separate password WordPress creates for one app, so the app never needs your own password. When you approve Valiant, WordPress creates one named "Valiant". You can see it, and revoke it, in your WordPress profile under Application Passwords.
How to check: in your WordPress admin, go to Users > Profile and scroll down. If you see an Application Passwords section, they are switched on.
How to fix it: if the section is missing, a security plugin or a setting from your host has usually turned the feature off. Turn it back on in that plugin's settings, or ask your developer or host to do so. If application passwords are off, ValiantAI shows "Your site has application passwords switched off, usually by a security plugin. Switch them on, then try again." ValiantAI shows the same message if the plugin hides the part of the REST API that holds pages and posts.
4. A WordPress login that can edit pages and posts
The person who approves Valiant must be logged in to WordPress with an account that can edit both pages and posts. In standard WordPress roles, Administrator and Editor accounts can do both; Author, Contributor and Subscriber accounts cannot edit pages. If a custom role or a membership plugin changes these permissions, what matters is that the account can edit pages and posts.
If the account cannot, ValiantAI deletes the application password it was given, the connection does not complete, and the WordPress card reads "The connection was cancelled. Try again whenever you are ready." Ask a site administrator to approve Valiant instead.
If a developer manages your site
Send them this article. They can check all four items and, if they have a suitable WordPress login, complete the approval themselves. See Can my web developer connect my website to ValiantAI for me?
Next step
When all four items are in place, follow How to connect your WordPress site to ValiantAI. If you still see an error, see WordPress site won't connect to ValiantAI.
Related articles
