Docs
Integrations
Wordpress

WordPress

Publish articles directly to WordPress using the built-in REST API and Application Passwords β€” no plugin required.

IndexPine connects to WordPress using the standard WordPress REST API (available in every WordPress installation since version 4.7) authenticated with an Application Password. There is no plugin to install, no third-party dependency, and no changes required to your theme or site structure.

Prerequisites

  • WordPress 5.6 or later (Application Passwords were added in 5.6).
  • Pretty Permalinks enabled β€” go to Settings > Permalinks and select anything except "Plain".
  • Your WordPress site must be accessible over HTTPS.
  • The REST API must not be disabled by a security plugin. Test by visiting https://yourdomain.com/wp-json/wp/v2/posts in a browser β€” you should see a JSON response.

Step 1 β€” Create an Application Password

Application Passwords are separate from your login password. They give API clients access to specific WordPress capabilities without exposing your main credentials.

  1. Log in to your WordPress admin dashboard.
  2. Click your username in the top-right corner, then click "Edit Profile".
  3. Scroll down to the "Application Passwords" section near the bottom of the page.
  4. In the "New Application Password Name" field, type "IndexPine" (or any label you will recognise).
  5. Click "Add New Application Password".
  6. WordPress generates a 24-character password like: AbCd EfGh IjKl MnOp QrSt UvWx β€” copy this immediately. It is only shown once.
Save the password now
WordPress will never show you the Application Password again after you navigate away from this page. Copy it and paste it into IndexPine immediately.

Step 2 β€” Connect in IndexPine

  1. In your IndexPine dashboard, go to Settings > CMS Connection.
  2. Select "WordPress" as the CMS type.
  3. In the "Site URL" field, enter your WordPress site URL β€” e.g. https://myblog.com. Do not include a trailing slash.
  4. In the "WordPress Username" field, enter the exact username you used when generating the Application Password.
  5. In the "Application Password" field, paste the password you just copied (spaces are fine, IndexPine strips them).
  6. Click "Test connection".

IndexPine calls GET /wp-json/wp/v2/posts?per_page=1 with your credentials to verify the connection. A green checkmark confirms everything is working.

How publishing works

When IndexPine publishes an article to WordPress it performs these steps in order:

  1. Upload the AI-generated featured image to your WordPress Media Library via POST /wp-json/wp/v2/media.
  2. Create the post with the article title, body HTML, slug, excerpt, and featured media ID via POST /wp-json/wp/v2/posts.
  3. Set the post status to "publish" so it goes live immediately, or "draft" if you have manual approval enabled.
  4. Store the returned WordPress post URL in IndexPine so you can navigate directly to the live article.

Categories and tags

You can configure a default category for all IndexPine articles in Settings > CMS Connection. If no category is specified, WordPress assigns its default "Uncategorized". IndexPine does not create new categories β€” use an existing category ID from your site. To find a category's ID, go to Posts > Categories in WordPress admin and hover over the category name; the ID appears in the URL.

Troubleshooting

  • REST API returns 401 Unauthorized β€” double-check the username. It must be the WordPress login username, not a display name or email address.
  • REST API returns 403 Forbidden β€” a security plugin (Wordfence, iThemes Security, etc.) may be blocking the REST API. Check the plugin's settings and whitelist IndexPine's IP ranges.
  • REST API returns 404 Not Found β€” your permalink structure is set to "Plain". Go to Settings > Permalinks and change it to "Post name" or any other option.
  • Application Passwords section not showing β€” your hosting provider may have disabled it. Contact your host or add the following to wp-config.php: define( "WP_APPLICATION_PASSWORDS_ENABLED", true );